OneCode is an open-source tool designed to help users conveniently operate Codex and Claude Code through a web interface. It supports local deployment and can be accessed externally through intranet mapping, making it convenient for users to use remotely via mobile devices and other platforms. Part of the design experience is inspired by ZCode.
- Web Interface: Modern and responsive web UI built with React + TypeScript + Tailwind CSS
- AI Integration: Seamless integration with OpenAI Codex and Claude Code
- Session Management: Visualize and manage AI coding sessions with detailed history
- Project Workspace: File explorer and code editor integration for seamless development workflow
- Token Usage Tracking: Monitor and visualize token consumption across sessions
- Real-time Updates: Server-Sent Events (SSE) for live AI response streaming
- Cross-platform: Support for Windows, Linux, and macOS
- System Tray: Windows desktop application with tray icon support
After launching OneCode.Win.exe, a system tray icon appears with the background service running automatically.
Automatically scans and loads local projects that have used Codex, allowing you to select and enter a workspace.
- Start new conversations or select from session history
- Load previous sessions to restore full context
- View session details including token usage and timeline
Integrated file browser to view and edit code files directly while interacting with AI.
- Visit the GitHub Releases page
- Download the latest Windows archive (
OneCode-*-win-x64.zip) - Extract and run
OneCode.Win.exe - The program will display an icon in the system tray
- Open your browser and visit
http://localhost:9110/
- Download the latest Linux package (
OneCode-*-linux-x64.tar.gz) from Releases - Extract the archive:
tar -xzf OneCode-*-linux-x64.tar.gz cd OneCode-*-linux-x64
- Run directly:
./run.sh
- Or install as a systemd service:
sudo ./install-service.sh
- Download the latest macOS package (
OneCode-*-osx-x64.tar.gz) from Releases - Extract the archive:
tar -xzf OneCode-*-osx-x64.tar.gz cd OneCode-*-osx-x64
- Run directly:
./run.sh
- Or install as a launch daemon:
sudo ./install-service.sh
- .NET 10.0 Runtime (for standalone executables, it's self-contained)
- Codex CLI (required for Codex integration):
npm install -g @openai/codex
After starting the application, open your browser and navigate to:
- HTTP:
http://localhost:9110/ - HTTPS:
https://localhost:9111/(if configured)
- Select Project: OneCode automatically scans for projects with Codex usage history
- Enter Workspace: Click on a project to enter its workspace
- Start Conversation: Begin a new chat or load a previous session
- View Code: Use the integrated file browser to view and edit files
- Monitor Usage: Track token usage and session statistics
- Click the session list button in the top-right corner
- Select a historical session
- Click "Load Session" to restore the complete context
- View session details including token usage, timeline, and metadata
# Build
dotnet build src/OneCode/OneCode.csproj
# Run (HTTP)
dotnet run --project src/OneCode/OneCode.csproj --launch-profile http
# Run (HTTPS)
dotnet run --project src/OneCode/OneCode.csproj --launch-profile httpscd web
# Install dependencies
npm ci
# Development server
npm run dev
# Build for production
npm run build
# Lint code
npm run lintThe CI pipeline automatically builds both frontend and backend:
# Install frontend dependencies
npm ci
# Build frontend
npm run build
# Sync frontend to backend wwwroot
rsync -a --delete web/dist/ src/OneCode/wwwroot/
# Build backend
dotnet build src/OneCode/OneCode.csproj -c ReleaseOneCode follows a dual-stack architecture:
- Framework: ASP.NET Core 10.0 Web API
- Communication: JSON-RPC over stdio with Codex app-server
- Database: SQLite with Entity Framework Core
- Protocols: Agent-to-Agent (A2A) protocol for streaming AI interactions
- Framework: React 19 with TypeScript
- Build Tool: Vite
- Styling: Tailwind CSS v4
- State: React Router + local component state
- UI Components: Radix UI with custom animations
See CLAUDE.md for detailed architecture documentation.
Contributions are welcome! Please feel free to submit issues or pull requests.
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- GitHub: https://github.com/AIDotNet/OneCode
- Issues: https://github.com/AIDotNet/OneCode/issues
- Discussions: https://github.com/AIDotNet/OneCode/discussions
- Inspired by ZCode
- Built with OpenAI Codex and Anthropic Claude Code
Community WeChat:wk28u9123456789