Skip to content
forked from winfunc/opcode

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

License

Notifications You must be signed in to change notification settings

oliveagle/opcode

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

opcode Logo

opcode

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


Made with ❀️ by the Asterisk

Report Bug Β· Request Feature

Star History

Star History Chart

About

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

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 73.1%
  • Rust 24.1%
  • CSS 1.3%
  • Shell 0.9%
  • Just 0.4%
  • Dockerfile 0.1%
  • Other 0.1%