A powerful web toolkit for Claude Code
Run anywhere - browser, server, or mobile. Create custom agents, manage interactive Claude Code sessions, run secure background agents, and more.
opcode-demo.mp4
Tip
β Star the repo and follow @getAsterisk on X for early access to asteria-swe-v0.
Note
This project is not affiliated with, endorsed by, or sponsored by Anthropic. Claude is a trademark of Anthropic, PBC. This is an independent developer project using Claude.
opcode is a powerful web-based toolkit for Claude Code. Originally a desktop application built with Tauri, it has evolved into a modern web application that runs anywhere - in your browser, on a server, or on your phone.
Think of opcode as your command center for Claude Code - a beautiful web interface that makes AI-assisted development more intuitive and productive, accessible from any device.
- π Overview
- π Quick Start
- ποΈ Architecture
- β¨ Features
- π Usage
- π¨ Development
- π Security
- π€ Contributing
- π License
- π Acknowledgments
# Clone and enter the project
git clone https://github.com/getAsterisk/opcode.git
cd opcode
# Install dependencies
bun install
# Start the web server (frontend + API)
just dev-webThen open http://localhost:1420 in your browser.
| Command | Description |
|---|---|
just dev-web |
Start frontend dev server (0.0.0.0:1420) |
just web |
Run full web server with Rust backend |
just web-port 8080 |
Run web server on custom port |
opcode/
βββ src/ # React frontend
β βββ components/ # UI components
β βββ lib/ # API client & utilities
β βββ assets/ # Static assets
βββ src-tauri/ # Rust backend (also serves web UI)
β βββ src/
β β βββ commands/ # API handlers
β β βββ checkpoint/ # Timeline management
β β βββ process/ # Process management
β βββ Cargo.toml
βββ dist/ # Built frontend assets
- Frontend: React + TypeScript + Vite frontend built for the web
- Backend: Rust server that handles Claude Code integration and API requests
- Communication: Frontend communicates with Rust backend via REST API
The backend can be run:
- Locally: Access via localhost
- On a Server: Access via browser from anywhere
- On Mobile: Works on phone browsers via network IP
- Visual Project Browser: Navigate through all your Claude Code projects in
~/.claude/projects/ - Session History: View and resume past coding sessions with full context
- Smart Search: Find projects and sessions quickly with built-in search
- Session Insights: See first messages, timestamps, and session metadata at a glance
- Custom AI Agents: Create specialized agents with custom system prompts and behaviors
- Agent Library: Build a collection of purpose-built agents for different tasks
- Background Execution: Run agents in separate processes for non-blocking operations
- Execution History: Track all agent runs with detailed logs and performance metrics
- Cost Tracking: Monitor your Claude API usage and costs in real-time
- Token Analytics: Detailed breakdown by model, project, and time period
- Visual Charts: Beautiful charts showing usage trends and patterns
- Export Data: Export usage data for accounting and analysis
- Server Registry: Manage Model Context Protocol servers from a central UI
- Easy Configuration: Add servers via UI or import from existing configs
- Connection Testing: Verify server connectivity before use
- Claude Desktop Import: Import server configurations from Claude Desktop
- Session Versioning: Create checkpoints at any point in your coding session
- Visual Timeline: Navigate through your session history with a branching timeline
- Instant Restore: Jump back to any checkpoint with one click
- Fork Sessions: Create new branches from existing checkpoints
- Diff Viewer: See exactly what changed between checkpoints
- Built-in Editor: Edit CLAUDE.md files directly within the app
- Live Preview: See your markdown rendered in real-time
- Project Scanner: Find all CLAUDE.md files in your projects
- Syntax Highlighting: Full markdown support with syntax highlighting
- Launch opcode: Open the application after installation
- Welcome Screen: Choose between CC Agents or Projects
- First Time Setup: opcode will automatically detect your
~/.claudedirectory
Projects β Select Project β View Sessions β Resume or Start New
- Click on any project to view its sessions
- Each session shows the first message and timestamp
- Resume sessions directly or start new ones
CC Agents β Create Agent β Configure β Execute
- Design Your Agent: Set name, icon, and system prompt
- Configure Model: Choose between available Claude models
- Set Permissions: Configure file read/write and network access
- Execute Tasks: Run your agent on any project
Menu β Usage Dashboard β View Analytics
- Monitor costs by model, project, and date
- Export data for reports
- Set up usage alerts (coming soon)
Menu β MCP Manager β Add Server β Configure
- Add servers manually or via JSON
- Import from Claude Desktop configuration
- Test connections before using
- Claude Code CLI: Install from Claude's official site
Before developing opcode, ensure you have:
-
Rust (1.70.0 or later)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
-
Bun (latest version)
curl -fsSL https://bun.sh/install | bash -
Git
- Usually pre-installed on most systems
-
Claude Code CLI
- Download from Claude's official site
- Ensure
claudeis in your PATH
# Install dependencies
bun install
# Start frontend dev server (hot reload)
just dev-web
# Build and run full web server
just web
# Build frontend for production
bun run build
# Run Rust tests
cd src-tauri && cargo test
# Format Rust code
cd src-tauri && cargo fmt| Mode | URL | Access |
|---|---|---|
| Frontend dev | http://localhost:1420 | Local only |
| Full server | http://localhost:8080 | Local & network |
For mobile/phone access:
just ip # Shows your local IP
# Then open http://YOUR_IP:1420 on your phone- Frontend: React 18 + TypeScript + Vite 6
- Backend: Rust + Axum (web server)
- UI Framework: Tailwind CSS v4 + shadcn/ui
- Database: SQLite (via rusqlite)
- Package Manager: Bun
opcode/
βββ src/ # React frontend
β βββ components/ # UI components
β βββ lib/ # API client & utilities
β βββ assets/ # Static assets
βββ src-tauri/ # Rust backend
β βββ src/
β β βββ commands/ # API command handlers
β β βββ checkpoint/ # Timeline management
β β βββ process/ # Process management
β βββ Cargo.toml
βββ dist/ # Built frontend assets
opcode prioritizes your privacy and security:
- Process Isolation: Agents run in separate processes
- Permission Control: Configure file and network access per agent
- Local Storage: All data stays on your machine
- No Telemetry: No data collection or tracking
- Open Source: Full transparency through open source code
We welcome contributions! Please see our Contributing Guide for details.
- π Bug fixes and improvements
- β¨ New features and enhancements
- π Documentation improvements
- π¨ UI/UX enhancements
- π§ͺ Test coverage
- π Internationalization
This project is licensed under the AGPL License - see the LICENSE file for details.
- React - UI framework
- Vite - Build tool
- Tailwind CSS - Styling
- Claude by Anthropic
Made with β€οΈ by the Asterisk
