# Repository Briefing: op7418/CodePilot
> Source: https://repoforai.com/repo/op7418/CodePilot (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/op7418/CodePilot
- **Official Docs / Website**: https://www.codepilot.sh/
- **Category**: Agents & Frameworks (智能体与框架)
- **Primary Language**: TypeScript
- **License**: See repository
- **Engineering Health**: A (81/100 · Maintenance 35/35 · Adoption 20/25 · Releases 20/20 · License 6/20)
- **Latest Release**: v0.70.1 (2026-12-03) — https://github.com/op7418/CodePilot/releases
- **Review Snapshot**: 2026-12-04
- **Deployment / Stack Signals**: MCP, Self-Hosted, CLI
- **Momentum**: 6,540 ★ total (+8 24h / +25 7d) · 700 forks
- **Topics**: `ai`, `anthropic`, `claude`, `claude-code`, `desktop-app`, `electron`, `gui`, `nextjs`
- **When to Use**: Best for: Developers and power users who want one desktop client for multiple providers, MCP tools, local session history, and recurring assistant tasks. Skip if: Your primary need is an editor-integrated coding assistant, a centrally administered multi-user service, or a fully offline setup without separately provisioning local inference.

## Overview
```text
### Architecture & Core Mechanics
CodePilot is a TypeScript desktop client built around an Electron shell and a Next.js app. The `electron/` directory and `electron-builder.yml` cover the desktop side; `npm run dev` starts the Next.js browser experience, while `npm run electron:dev` starts both. Local storage uses `better-sqlite3` with SQLite in WAL mode. Assistant Workspace adds editable Markdown persona, rules, and memory alongside application state.

Execution is split between API providers and CLI-backed harnesses. The manifest includes provider adapters from the AI SDK and `@anthropic-ai/claude-agent-sdk`; the settings distinguish API providers from harness accounts. Assistant Workspace and background check-ins are pinned to CodePilot's Native runtime. Extensions have two separate paths: MCP servers use `@modelcontextprotocol/sdk` over stdio, SSE, or HTTP with runtime status monitoring, while Skills manages reusable project and global instructions.

### Key Capabilities & Differentiators
A conversation starts with a working directory, a model, and an interaction mode: Code, Plan, or Ask. CodePilot can switch models mid-conversation without discarding the thread. Provider options include Anthropic and OpenRouter, Bedrock and Vertex AI, Zhipu GLM and Kimi, Ollama and LiteLLM, and custom OpenAI- or Anthropic-compatible endpoints. Sessions support pause, resume, checkpoint rewind, side-by-side viewing, and import of Claude Code JSONL history.

The app combines an assistant with persistent memory, interactive dashboards and widgets, Gemini image generation with batch tasks and a gallery, and persistent cron or interval scheduling. A project file browser and Git panel expose repository state, branches, commits, and worktree management. Remote bridges cover Telegram, Feishu, Discord, QQ, and WeChat, each with its own bot or app credentials. Token and cache statistics are available in the usage view.

### Trade-offs & Limitations
Compared with using Claude Code directly, CodePilot adds a GUI for switching providers, browsing sessions, and managing MCP servers and skills. Compared with editor-centered tools such as Cursor and Windsurf, its focus is a standalone agent workspace. That is useful if you want coding and assistant workflows in one client, but it also adds provider credentials, runtime-specific tool behavior, and extension approvals to manage. Test file edits, terminal commands, and Git actions in the runtime you plan to adopt rather than assuming they work the same across backends.

Local storage is not an offline guarantee: cloud providers and messaging bridges create separate data paths, and MCP integrations need their own trust review. Keep per-action approvals enabled when assessing tools instead of defaulting to Full Access. The release hardening improves documented boundaries, but the supplied information does not establish an enterprise security baseline. A `LICENSE` file exists, but its terms are not available here; verify commercial use and redistribution rights before rollout.

### Hardware & Deployment Guide
Start with an official release and configure a provider under Settings > Providers. Packages cover macOS 13+ on arm64 and x64, Windows x64, and Linux x64 and arm64. macOS stable builds are signed and notarized. Windows packages are unsigned, including those delivered by the in-app updater after the first updater-capable installation; SHA-512 verification is not independent publisher verification. Linux updates are manual. Source development requires Node.js 24+ and npm 11+.

Cloud API use puts inference on the provider's infrastructure; for a local or self-hosted path, configure an endpoint such as Ollama or LiteLLM and provision its backing model separately. v0.69.0 moved Assistant Workspace and background check-ins to Native. v0.70.0 added support for a locally installed and authenticated Antigravity CLI (`agy`). v0.70.1 hardened local API authentication, preview isolation, and Native tool approvals. The desktop release is the practical starting point for evaluating those protections; browser development mode does not launch the Electron shell.
```

## Key Capabilities
```text
- Runtime separation: Settings distinguish harness accounts from API providers; Assistant Workspace and background check-ins run on Native.
- Provider routing: Presets for 17+ providers, custom OpenAI- and Anthropic-compatible endpoints, and in-thread model switching.
- Extensions: MCP over stdio, SSE, and HTTP with runtime status; project and global skills are managed separately.
- Session management: Checkpoint rewind, side-by-side sessions, Claude Code JSONL history import, and local SQLite in WAL mode.
- Background and remote workflows: Persistent cron or interval scheduling and bridges for Telegram, Feishu, Discord, QQ, and WeChat.
- Desktop security: v0.70.1 adds startup-token checks to local APIs, hardens preview responses, and tightens Native tool approvals.
```

## Quick Start / Clone
```bash
git clone https://github.com/op7418/CodePilot.git
cd CodePilot
npm install
npm run dev              # browser mode at http://localhost:3000
# -- or --
npm run electron:dev     # full desktop app
```
