๐ชจ why use many token when few token do trick โ Claude Code skill that cuts 65% of tokens by talking like caveman
Claude Code desktop app and toolkit
opcode is a desktop app for Claude Code that wraps your projects, sessions, and agents in a visual interface. It connects the React UI to a Rust Tauri backend so you can browse session history, edit CLAUDE.md files, manage MCP servers, and run agents in the background.
Builders who use Claude Code and want a visual command center for projects, sessions, and agents.
You can manage Claude Code work from one app instead of juggling terminal sessions and scattered config files.
What it does
Project and session management
Browse `~/.claude/projects/`, open past sessions, search projects, and resume work with session context.
Custom agents
Create agents with custom system prompts, model choices, permissions, and separate background execution.
Usage analytics
Track Claude API cost and token usage by model, project, and time period, then export the data.
MCP server management
Add, test, and import Model Context Protocol server configs from a central UI.
Timeline and checkpoints
Create checkpoints during a session, jump back to earlier states, and fork a session from a checkpoint.
CLAUDE.md editor
Find and edit CLAUDE.md files in the app with live markdown preview and syntax highlighting.
How to get it
- 1Run
Projects โ Select Project โ View Sessions โ Resume or Start New
- 2Run
CC Agents โ Create Agent โ Configure โ Execute
- 3Run
Menu โ Usage Dashboard โ View Analytics
- 4Run
Menu โ MCP Manager โ Add Server โ Configure
README
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
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
Creating Agents
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
Tracking Usage
Menu โ Usage Dashboard โ View Analytics
- Monitor costs by model, project, and date
- Export data for reports
- Set up usage alerts (coming soon)
Working with MCP Servers
Menu โ MCP Manager โ Add Server โ Configure
- 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)
# 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
Platform-Specific Dependencies
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-dev
macOS
# Install Xcode Command Line Tools
xcode-select --install
# Install additional dependencies via Homebrew (optional)
brew install pkg-config
Windows
- Install Microsoft C++ Build Tools
- Install WebView2 (usually pre-installed on Windows 11)
Build Steps
-
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 devFor 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 --debugUniversal Binary for macOS (Intel + Apple Silicon)
bun 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:
# Run the built executable directly
# Linux/macOS
./src-tauri/target/release/opcode
# Windows
./src-tauri/target/release/opcode.exe
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
opcode/
โโโ src/ # React frontend
โ โโโ components/ # UI components
โ โโโ lib/ # API client & utilities
โ โโโ assets/ # Static assets
โโโ src-tauri/ # Rust backend
โ โโโ src/
โ โ โโโ commands/ # Tauri command handlers
โ โ โโโ checkpoint/ # Timeline management
โ โ โโโ process/ # Process management
โ โโโ tests/ # Rust test suite
โโโ public/ # Public assets
Development Commands
# Start development server
bun run tauri dev
# Run frontend only
bun run dev
# Type checking
bunx tsc --noEmit
# Run Rust tests
cd src-tauri && cargo test
# Format code
cd src-tauri && cargo fmt
๐ 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
Star History
Files in the repo
- .cargo
- .github
- cc_agents
- scripts
- src
- src-tauri
- .gitignore
- bun.lock
- bun.lockb
- CONTRIBUTING.md
- index.html
- justfile
- LICENSE
- package-lock.json
- package.json
- README.md
- shell.nix
- tsconfig.json
- tsconfig.node.json
- vite.config.ts
- web_server.design.md
Discussion (0)
Ask about usage, or say what you built with itSign in to join the discussion.
No comments yet. Be the first to say what this is good for.
More tools
The best-benchmarked open-source AI memory system. And it's free.
Orca is the ADE for working with a fleet of parallel agents. Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io
Never stop coding. Free MIT AI gateway: one endpoint, 352 providers (150+ free), 1200+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 550+ contributors
Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.