A powerful GUI app and Toolkit for Claude Code
Manage projects, create intelligent agents, track usage, handle MCP servers, and access Claude Code through a beautiful desktop interface.
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 comprehensive desktop application that transforms how you interact with Claude Code. Built with Tauri 2 and React, it provides a beautiful GUI for managing projects, creating intelligent agents, tracking usage, handling MCP servers, and much more.
Think of opcode as your complete command center for Claude Code - bridging the gap between command-line tools and a visual experience that makes AI-assisted development more intuitive, organized, and productive.
- π Overview
- β¨ Features
- π Usage
- π Installation
- π¨ Build from Source
- π οΈ Development
- π Security
- π€ Contributing
- π License
- π Acknowledgments
- 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
- GitHub Integration: Browse and import agents directly from GitHub
- Agent Export/Import: Share agent configurations with others
- Real-time Monitoring: Live output streaming and execution status
- Permission Control: Fine-grained file read/write and network access permissions
- 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
- File Tracking: Automatic tracking of file changes between checkpoints
- Auto Checkpoints: Configurable automatic checkpoint creation
- Timeline Stats: View comprehensive session statistics and metadata
- 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
- File Browser Integration: Seamlessly browse and edit files within projects
- Browser Access: Access opcode features through any web browser
- WebSocket Support: Real-time Claude interaction via WebSocket
- Mobile Friendly: Optimized for mobile and tablet devices
- Remote Access: Access your Claude sessions from anywhere
- Cross-Platform: Works on any device with a modern browser
- Proxy Configuration: Support for HTTP, HTTPS, and SOCKS proxies
- Claude Binary Management: Auto-detection and manual configuration of Claude CLI
- Global Shortcuts: System-wide keyboard shortcuts
- System Integration: Deep integration with macOS, Windows, and Linux
- Custom Commands: Create and manage custom slash commands
- Command Library: Build a collection of reusable commands
- Quick Access: Fast command execution from anywhere in the app
- 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
- WebView2 (Windows 10/11): Usually pre-installed on Windows 11
Pre-built executables are available for Windows, macOS, and Linux. Check the Releases page for downloads.
- Download
opcode-setup.exefrom the releases page - Run the installer and follow the prompts
- Launch opcode from Start Menu or Desktop
- Download
opcode.dmgfrom the releases page - Open the DMG and drag opcode to Applications
- Launch from Applications folder
- Download the appropriate package (
.deb,.AppImage, or.rpm) - Install using your package manager or run the AppImage
- Launch from your application menu
Note
On Linux, you may need to make the AppImage executable: chmod +x opcode.AppImage
Before building opcode from source, ensure you have the following installed:
- Operating System: Windows 10/11, macOS 11+, or Linux (Ubuntu 20.04+)
- RAM: Minimum 4GB (8GB recommended)
- Storage: At least 1GB free space
-
Rust (1.70.0 or later)
# Install via rustup curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
-
Bun (latest version)
# Install bun curl -fsSL https://bun.sh/install | bash
-
Git
# Usually pre-installed, but if not: # Ubuntu/Debian: sudo apt install git # macOS: brew install git # Windows: Download from https://git-scm.com
-
Claude Code CLI
- Download and install from Claude's official site
- Ensure
claudeis available in your PATH
Linux (Ubuntu/Debian)
# Install system dependencies
sudo apt update
sudo apt install -y \
libwebkit2gtk-4.1-dev \
libgtk-3-dev \
libayatana-appindicator3-dev \
librsvg2-dev \
patchelf \
build-essential \
curl \
wget \
file \
libssl-dev \
libxdo-dev \
libsoup-3.0-dev \
libjavascriptcoregtk-4.1-devmacOS
# Install Xcode Command Line Tools
xcode-select --install
# Install additional dependencies via Homebrew (optional)
brew install pkg-configWindows
- Install Microsoft C++ Build Tools
- Install WebView2 (usually pre-installed on Windows 11)
-
Clone the Repository
git clone https://github.com/getAsterisk/opcode.git cd opcode -
Install Frontend Dependencies
bun install
-
Build the Application
For Development (with hot reload)
bun run tauri dev
For Production Build
# Build the application bun run tauri build # The built executable will be in: # - Linux: src-tauri/target/release/ # - macOS: src-tauri/target/release/ # - Windows: src-tauri/target/release/
-
Platform-Specific Build Options
Debug Build (faster compilation, larger binary)
bun run tauri build --debug
Universal Binary for macOS (Intel + Apple Silicon)
bun run tauri build --target universal-apple-darwin
-
"cargo not found" error
- Ensure Rust is installed and
~/.cargo/binis in your PATH - Run
source ~/.cargo/envor restart your terminal
- Ensure Rust is installed and
-
Linux: "webkit2gtk not found" error
- Install the webkit2gtk development packages listed above
- On newer Ubuntu versions, you might need
libwebkit2gtk-4.0-dev
-
Windows: "MSVC not found" error
- Install Visual Studio Build Tools with C++ support
- Restart your terminal after installation
-
"claude command not found" error
- Ensure Claude Code CLI is installed and in your PATH
- Test with
claude --version
-
Build fails with "out of memory"
- Try building with fewer parallel jobs:
cargo build -j 2 - Close other applications to free up RAM
- Try building with fewer parallel jobs:
After building, you can verify the application works:
# Run the built executable directly
# Linux/macOS
./src-tauri/target/release/opcode
# Windows
./src-tauri/target/release/opcode.exeThe build process creates several artifacts:
- Executable: The main opcode application
- Installers (when using
tauri build):.debpackage (Linux).AppImage(Linux).dmginstaller (macOS).msiinstaller (Windows).exeinstaller (Windows)
All artifacts are located in src-tauri/target/release/.
opcode uses a simplified version management system that automatically handles version synchronization and executable naming.
Versions follow Semantic Versioning (SemVer): x.y.z
- x (Major): Major version - incompatible API changes
- y (Minor): Minor version - backward-compatible new features
- z (Patch): Patch version - backward-compatible bug fixes (auto-increments on build)
The version number is managed only in package.json:
{
"name": "opcode",
"version": "0.2.1",
...
}-
Manual Editing for x.y: When releasing a new version, manually edit
package.jsonto set the version (e.g., change0.2.1to1.0.0) -
Sync Version: Run the sync command to propagate the version to all configuration files:
npm run sync:version
This updates:
src-tauri/Cargo.toml- Rust crate versionsrc-tauri/tauri.conf.json- Tauri app version
-
Auto-Increment on Build: Every build automatically increments the patch version (
z):# The prebuild hook automatically: # - Increments patch version (0.2.1 β 0.2.2) # - Syncs version to all files bun run tauri build # Then the build continues and the post-build hook: # - Renames executable with version suffix # Output: opcode-v0.2.2.exe
Scenario 1: Release a new minor version
# 1. Manually edit package.json: "version": "1.5.0"
# 2. Sync version to other files
npm run sync:version
# 3. Build (automatically increments to 1.5.1)
bun run tauri build
# Output: opcode-v1.5.1.exeScenario 2: Quick bug fix
# Build directly (no manual version change needed)
bun run tauri build
# Version automatically: 1.5.1 β 1.5.2
# Output: opcode-v1.5.2.exeThe current version is displayed in multiple places:
-
NFO Credits Window: Click the "i" icon in the title bar
- Window title shows:
opcode.NFO v0.2.1 - Credits header shows:
opcode v0.2.1
- Window title shows:
-
Build Output: Executables include version suffix
opcode-v0.2.1.exe(Windows)opcode-v0.2.1.AppImage(Linux)opcode-v0.2.1.dmg(macOS)
# Sync version from package.json to all config files
npm run sync:version
# Build production version (auto-increments patch, adds version suffix)
bun run tauri build
# Build debug version (also auto-increments)
bun run tauri build --debug
# Development build (also auto-increments)
bun run tauri dev- β
Single source: Version only managed in
package.json - β Manual x.y: You control major and minor versions
- β Auto z: Patch version increments automatically on every build
- β No auto-reset: Patch version does NOT reset to 0 when x.y changes
- β
Manual reset: Set z to 0 manually when needed (e.g.,
2.0.0) - β Automatic sync: Version syncs to all files during build
- β Versioned executables: Built files include version suffix
Note
The patch version (z) never automatically resets to zero. When you want to release 2.0.0, manually edit package.json to set the version, then build. The build will increment it to 2.0.1 for the actual executable.
- Frontend: React 18 + TypeScript + Vite 6
- Backend: Rust with Tauri 2
- UI Framework: Tailwind CSS v4 + shadcn/ui + Radix UI
- State Management: Zustand
- Database: SQLite (via rusqlite)
- Web Server: Axum (with WebSocket support)
- Package Manager: Bun
- Process Management: Tokio (async runtime)
- Data Visualization: Recharts
opcode/
βββ src/ # React frontend
β βββ components/ # UI components
β β βββ ui/ # shadcn/ui base components
β β βββ claude-code-session/ # Claude session components
β β βββ Agent*.tsx # Agent management
β β βββ FilePicker.tsx # File browser
β β βββ ...
β βββ lib/ # Utilities & API
β β βββ api.ts # Tauri API client
β β βββ apiAdapter.ts # Desktop/Web adapter
β β βββ analytics/ # Analytics module
β βββ stores/ # Zustand state stores
β βββ services/ # Business logic
β βββ hooks/ # Custom React hooks
β βββ types/ # TypeScript definitions
βββ src-tauri/ # Rust backend
β βββ src/
β β βββ commands/ # Tauri command handlers
β β β βββ agents.rs # Agent management
β β β βββ claude.rs # Claude interactions
β β β βββ mcp.rs # MCP server management
β β β βββ storage.rs # SQLite operations
β β β βββ usage.rs # Usage analytics
β β βββ checkpoint/ # Checkpoint system
β β β βββ manager.rs # Timeline management
β β β βββ storage.rs # Checkpoint persistence
β β βββ process/ # Process management
β β β βββ registry.rs # Process registry
β β βββ web_server.rs # Axum web server
β β βββ main.rs # Tauri entry point
β βββ capabilities/ # Tauri permissions
β βββ tauri.conf.json # Tauri configuration
βββ cc_agents/ # CC agent configs
βββ justfile # Build tasks
βββ package.json # Frontend dependencies
# Install dependencies
bun install
# Start development server (with hot reload)
bun run tauri dev
# Run frontend only
bun run dev
# Type checking
bunx tsc --noEmit
# Run Rust tests
cd src-tauri && cargo test
# Format Rust code
cd src-tauri && cargo fmt
# Check Rust code with clippy
cd src-tauri && cargo clippy
# Build production version
bun run tauri build
# Build debug version (faster)
bun run tauri build --debug
# Clean build artifacts
just clean # or manually:
rm -rf node_modules dist
cd src-tauri && cargo cleanIf you have just installed, additional commands are available:
# View all available commands
just
# Quick build and run
just run
# Start web server mode
just web
# Get local IP (for mobile access)
just ip
# Full rebuild
just rebuildopcode prioritizes your privacy and security:
- Process Isolation: Agents run in separate, isolated processes
- Permission Control: Configure fine-grained file read/write and network access per agent
- Local Storage: All data stays on your machine (SQLite database)
- No Telemetry: Zero data collection or tracking
- Open Source: Full transparency through open source code
- API Validation: All frontend inputs validated in the backend
- Secure Communication: WebSocket connections for real-time features
- File System Security: Tauri capabilities system controls filesystem access
Warning
While opcode provides security features, always review agent configurations and permissions before execution, especially when dealing with sensitive projects or data.
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 improvements
- π Internationalization (i18n)
- π§ Performance optimizations
- π Analytics and reporting features
- π Web server mode improvements
- Enable Debug Logging: Set
RUST_LOG=debugenvironment variable for detailed logs - Use VS Code: Install the recommended extensions for Rust and TypeScript
- Browser DevTools: Use F12 in the app to debug the frontend
- Database Viewer: Use any SQLite browser to inspect the local database
This project is licensed under the AGPL License - see the LICENSE file for details.
Made with β€οΈ by the Asterisk
