GitHub - oliveagle/opcode: A powerful GUI app and Toolkit for Claude Code - Create custom agents, manage interactive Claude Code sessions, run secure background agents, and more.

opcode Logo

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.

Features Quick Start Architecture Development Discord

457013521-6133a738-d0cb-4d3e-8746-c6768c82672c

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.

๐ŸŒŸ Overview

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.

๐Ÿ“‹ Table of Contents

๐Ÿš€ Quick Start

# 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-web

Then open http://localhost:1420 in your browser.

Available Commands

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

๐Ÿ—๏ธ Architecture

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

How It Works

  1. Frontend: React + TypeScript + Vite frontend built for the web
  2. Backend: Rust server that handles Claude Code integration and API requests
  3. 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

โœจ 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

  1. Launch opcode: Open the application after installation
  2. Welcome Screen: Choose between CC Agents or Projects
  3. First Time Setup: opcode will automatically detect your ~/.claude directory

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
  1. Design Your Agent: Set name, icon, and system prompt
  2. Configure Model: Choose between available Claude models
  3. Set Permissions: Configure file read/write and network access
  4. 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

Release Executables Will Be Published Soon

๐Ÿ”จ Development

Prerequisites

Before developing opcode, ensure you have:

  1. Rust (1.70.0 or later)

    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  2. Bun (latest version)

    curl -fsSL https://bun.sh/install | bash
  3. Git

    • Usually pre-installed on most systems
  4. Claude Code CLI

Development Commands

# 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

Access During Development

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

๐Ÿ› ๏ธ Tech Stack

  • 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

Project Structure

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

๐Ÿ”’ Security

opcode prioritizes your privacy and security:

  1. Process Isolation: Agents run in separate processes
  2. Permission Control: Configure file and network access per agent
  3. Local Storage: All data stays on your machine
  4. No Telemetry: No data collection or tracking
  5. 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


Star History

Star History Chart