mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
e959cc409f383e7802db0ea6f88dfa2e904fee26
* feat: add persistent model state storage with database backend - Create opencode_model_state table for storing user model preferences - Implement database-backed model state management (recent, favorite, variant) - Add atomic JSON file utilities with file locking for concurrent safety - Migrate providers routes from file-based to database storage - Add backfill migration to preserve existing model.json data - Include comprehensive tests for model-state and atomic-json modules - Refactor useSessionAgent hook to simplify agent/model resolution logic - Update getFileApiUrl to use consistent query parameter approach * fix: include workspace dependencies in Docker image * fix: overlay workspace node_modules after source to prevent layer overwrite * fix: ensure model state table exists for existing databases * feat: add model state persistence and improve model selection sync - Add setActiveModel to modelStore and useModelSelection for direct model updates - Sync session agent model/variant to store when messages load - Include model, agent, and variant in optimistic user messages - Fix useSessionAgent to check isFetching during message loading - Update env.ts to use getter for BASE_PATH for dynamic resolution - Fix test environment variable from OPENCODE_WORKSPACE_PATH to WORKSPACE_PATH * refactor(frontend): extract navigation helpers and improve settings back navigation - Move swipe-back route logic into shared navigation.ts module - Add getSessionListPath helper for consistent session list navigation - Add section history tracking to settings dialog for proper back navigation - Fix voice status overlay loading text visibility during starting state - Update env and vite config for production domain
Mobile-first web interface for OpenCode AI agents. Manage, control, and code from any device.
Quick Start
git clone https://github.com/chriswritescode-dev/opencode-manager.git
cd opencode-manager
cp .env.example .env
echo "AUTH_SECRET=$(openssl rand -base64 32)" >> .env
docker-compose up -d
# Open http://localhost:5003
On first launch, you'll be prompted to create an admin account. That's it!
For local development setup, see the Development Guide.
Screenshots
| Chat (Mobile) |
File Browser (Mobile) |
Inline Diff View |
Features
- Git — Multi-repo support, SSH authentication, worktrees, unified diffs with line numbers, PR creation
- Files — Directory browser with tree view, syntax highlighting, create/rename/delete, ZIP download
- Chat — Real-time streaming (SSE), slash commands,
@filementions, Plan/Build modes, Mermaid diagrams - Schedules — Recurring repo jobs with reusable prompts, run history, linked sessions, and markdown-rendered output
- Audio — Text-to-speech (browser + OpenAI-compatible), speech-to-text (browser + OpenAI-compatible)
- AI — Model selection, provider config, OAuth for Anthropic/GitHub Copilot, custom agents with system prompts
- MCP — Local and remote MCP server support with pre-built templates
- Memory — Persistent project knowledge with semantic search (plugin repo) and compaction awareness
- Mobile — Responsive UI, PWA installable, iOS-optimized with proper keyboard handling and swipe navigation
Configuration
# Required for production
AUTH_SECRET=your-secure-random-secret # Generate with: openssl rand -base64 32
# Pre-configured admin (optional)
ADMIN_EMAIL=admin@example.com
ADMIN_PASSWORD=your-secure-password
# For LAN/remote access
AUTH_TRUSTED_ORIGINS=http://localhost:5003,https://yourl33tdomain.com
AUTH_SECURE_COOKIES=false # Set to true when using HTTPS
For OAuth, Passkeys, Push Notifications (VAPID), and advanced configuration, see the Configuration Guide.
Documentation
- Getting Started — Installation and first-run setup
- Features — Deep dive on all features
- Configuration — Environment variables and advanced setup
- Troubleshooting — Common issues and solutions
- Development — Contributing and local development
License
MIT
Description
No description provided
agentai-agentsai-codingcoding-agentdeveloper-toolsdockerllmmobileopencodepwareactremote-developmentself-hostedterminalweb
Readme
MIT
77 MiB
0 Stars
1 Watchers
0 Forks
Languages
TypeScript
99.5%
Shell
0.3%
CSS
0.1%

