pandacode: Run Claude Code Experience on Any Model
pandacode is an open-source coding agent engine built into pandapaw, compatible with the full Claude Code experience, but the model backend is up to you — DeepSeek, Qwen, vLLM/Ollama, and company intranet proxies can all be connected, and it supports both OpenAI and Anthropic API formats. Install with one command, and remotely control it from your phone, browser, or desktop as usual.

Claude Code offers a great interactive experience—conversations, tool calls, file reading and writing, remote control, all in one package. But it's tied to Anthropic's models: subscriptions have quotas, API usage-based pricing isn't cheap, and some teams can only use internal model gateways with no way to reach Anthropic at all.
pandacode is built for this scenario: a lightweight coding agent engine written from scratch in Rust, with behavior identical to Claude Code on the surface (same streaming output, same tool loop, same session protocol), but the model backend is up to you.
What Models Can It Connect to
pandacode supports two API formats simultaneously, so virtually any model service can be used:
| Format | Typical Backends |
|---|---|
| Anthropic Messages | DeepSeek's official Anthropic-compatible endpoint, GLM, any /v1/messages compatible service |
| OpenAI Completions | OpenAI, DeepSeek /v1, Qwen, vLLM, Ollama, various internal corporate LLM proxies |
It also supports custom HTTP header authentication—many corporate internal proxies don't use standard Bearer tokens but require custom headers like access_token or source IP. pandacode natively supports this; just configure it.
Feature Overview
- 6 built-in tools: Read / Write / Edit / Bash / Glob / Grep—read code, modify files, run commands, search projects; all the core actions of a coding agent are here;
- Complete tool loop: Models can call tools continuously, get results, and continue reasoning until the task is done;
- Streaming output: Renders replies word by word, matching the feel of Claude Code;
- Integration with PandaNpc ecosystem: Works alongside genuine Claude Code as an independent "engine"—in the PandaNpc App (desktop / web / iPhone), select the
pandacodeengine for a connection to control it remotely, with a 🐼 pandacode badge in the session header; - Very small footprint: Single binary of about 2MB, distributed together with pandapaw.
Installation
pandacode is included in pandapaw (PandaNpc's unified command-line tool). Install with one command:
# macOS / Linux
curl -fsSL https://cos.pandanpc.com/pandapaw/install.sh | sh
# Windows (PowerShell)
iwr -useb https://cos.pandanpc.com/pandapaw/install.ps1 | iexThe installation script installs both pandapaw and pandacode. For existing pandapaw users, running pandapaw update will automatically add pandacode.
Configure the Model Backend
Method 1: DeepSeek (Simplest)
DeepSeek provides an Anthropic-compatible endpoint. Set the key with one command:
pandapaw pandacode set-key sk-你的DeepSeek密钥
pandapaw install # 注册 pandacode 常驻服务By default, it points to https://api.deepseek.com/anthropic + deepseek-chat. Ready to use after installation.
Method 2: OpenAI Format Endpoints (Qwen / vLLM / Ollama / Internal Proxy)
Edit ~/.pandapaw/config.toml and add a [pandacode] section:
[pandacode]
format = "openai" # OpenAI Completions 格式
base_url = "http://your-llm-gateway/v1" # 端点 = base_url + /chat/completions
token = "sk-your-key" # 标准 Bearer;无 Bearer 鉴权就填 sk-not-required
model = "qwen3.5-plus"
# 内网代理用自定义头鉴权?加这段(token 填 sk-not-required 即不发 Bearer):
[pandacode.headers]
access_token = "你的内网token"After modification, run pandapaw install (or restart the pandacode service) to apply. For local Ollama, use the same format: base_url = "http://127.0.0.1:11434/v1", model = "qwen2.5-coder", and any token.
The model key is stored only in the config file on your machine, never uploaded to any server or stored in any database.
Using It in the App
After installation, this machine will register itself on the PandaNpc relay network as your-machine-name-pc. Open the PandaNpc App (pandanpc.com web version or desktop/iPhone client):
- Create (or edit) a Claude Code connection, select the pandacode engine;
- Start a session, send messages normally—write code, fix bugs, run commands; the experience is the same as Claude Code;
- The 🐼 badge in the session header shows that this session runs on your own model.
Because it uses the same session protocol, all PandaNpc capabilities—remote control from a phone, reconnection after disconnection, history playback—are fully available.
When to Choose pandacode vs. Genuine Claude Code
| Scenario | Recommendation |
|---|---|
| Have Claude subscription/quota, want best coding ability | Genuine Claude Code |
| Want to save money: daily small tasks with cheap models | pandacode + DeepSeek |
| Corporate intranet, only internal model gateway available | pandacode + OpenAI format + custom headers |
| Want fully offline / data stays within the intranet | pandacode + vLLM / Ollama |
Both engines coexist in the App: the same machine can have one Claude Code connection and one pandacode connection simultaneously, and you can pick whichever fits the task.
Summary
pandacode decouples the "Claude Code experience" from "Anthropic's model": the experience is preserved, the model is free. With one installation command and a few lines of configuration, your DeepSeek / Qwen / internal model becomes a remotely controllable coding agent.
If you have any questions after installation, feel free to provide feedback at pandanpc.com.
Related guides

Use a Custom Model Backend with Claude Code (DeepSeek / 3rd-party API) + Remote Access
How to set up a custom model in Claude Code: run it on a cheaper backend like DeepSeek to save money, then use pandapaw to reach your dev machine and control it remotely.
Read article →
How to Use Claude Code Remote Control from Your Phone (2026)
Use Claude Code Remote Control from your phone or browser. Learn the three official commands, setup limits, troubleshooting, and when PandaNpc fits.
Read article →
Connect Claude Code to Your Phone: View Sessions and Approve Tools Anytime on iOS
This article is aimed at developers, sharing best practices for connecting to Claude Code from a mobile phone. Use the PandaNpc iOS app to view sessions in real time, approve tool calls, and respond to questions. With pandapaw and iOS Live Activity, you can achieve efficient remote control and improve coding flexibility.
Read article →