winfunc/opcode
opcode
A powerful GUI app and Toolkit for Claude Code
Create custom agents, manage interactive Claude Code sessions, run secure background agents, and more.
https://github.com/user-attachments/assets/6bceea0f-60b6-4c3e-a745-b891de00b8d0
[!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.
π Overview
opcode is a powerful desktop application that transforms how you interact with Claude Code. Built with Tauri 2, it provides a beautiful GUI for managing your Claude Code sessions, creating custom agents, tracking usage, and much more.
Think of opcode as your command center for Claude Code - bridging the gap between the command-line tool and a visual experience that makes AI-assisted development more intuitive and productive.
π Table of Contents
- π Overview
- β¨ Features
- π Usage
- π Installation
- π¨ Build from Source
- π οΈ Development
- π Security
- π€ Contributing
- π License
- π Acknowledgments
β¨ Features
ποΈ Project & Session Management
- 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
π€ CC Agents
- 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
π Usage Analytics Dashboard
- 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
π MCP Server Management
- 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
β° Timeline & Checkpoints
- 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
π CLAUDE.md Management
- 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
π Usage
Getting Started
- Launch opcode: Open the application after installation
- Welcome Screen: Choose between CC Agents or Projects
- First Time Setup: opcode will automatically detect your
~/.claudedirectory
Managing Projects
|
|
- Click on any project to view its sessions
- Each session shows the first message and timestamp
- Resume sessions directly or start new ones
Creating Agents
|
|
- 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
Tracking Usage
|
|
- Monitor costs by model, project, and date
- Export data for reports
- Set up usage alerts (coming soon)
Working with MCP Servers
|
|
- Add servers manually or via JSON
- Import from Claude Desktop configuration
- Test connections before using
π Installation
Prerequisites
- Claude Code CLI: Install from Claudeβs official site
Release Executables Will Be Published Soon
π¨ Build from Source
Prerequisites
Before building opcode from source, ensure you have the following installed:
System Requirements
- Operating System: Windows 10/11, macOS 11+, or Linux (Ubuntu 20.04+)
- RAM: Minimum 4GB (8GB recommended)
- Storage: At least 1GB free space
Required Tools
-
Rust (1.70.0 or later)
1 2# Install via rustup curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -
Bun (latest version)
1 2# Install bun curl -fsSL https://bun.sh/install | bash -
Git
1 2 3 4# 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
Platform-Specific Dependencies
Linux (Ubuntu/Debian)
|
|
macOS
|
|
Windows
- Install Microsoft C++ Build Tools
- Install WebView2 (usually pre-installed on Windows 11)
Build Steps
-
Clone the Repository
1 2git clone https://github.com/getAsterisk/opcode.git cd opcode -
Install Frontend Dependencies
1bun install -
Build the Application
For Development (with hot reload)
1bun run tauri devFor Production Build
1 2 3 4 5 6 7# 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)
1bun run tauri build --debugUniversal Binary for macOS (Intel + Apple Silicon)
1bun run tauri build --target universal-apple-darwin
Troubleshooting
Common Issues
-
β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:
Verify Your Build
After building, you can verify the application works:
|
|
Build Artifacts
The 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/.
π οΈ Development
Tech Stack
- Frontend: React 18 + TypeScript + Vite 6
- Backend: Rust with Tauri 2
- UI Framework: Tailwind CSS v4 + shadcn/ui
- Database: SQLite (via rusqlite)
- Package Manager: Bun
Project Structure
|
|
Development Commands
|
|
π Security
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
π€ Contributing
We welcome contributions! Please see our Contributing Guide for details.
Areas for Contribution
- π Bug fixes and improvements
- β¨ New features and enhancements
- π Documentation improvements
- π¨ UI/UX enhancements
- π§ͺ Test coverage
- π Internationalization
π License
This project is licensed under the AGPL License - see the LICENSE file for details.
π Acknowledgments
Made with β€οΈ by the Asterisk