ZhikunCode

Self-hosted AI coding assistant — deploy once, control everything from your browser with multi-agent collaboration and native support for Chinese LLMs.

Stars
★ 527
Last updated
5d ago
License
MIT
Primary language
Java

At a glance

How it runs
Self-hosted serviceWeb appCLI
Works with
Universal · cross-platformOpenAI API · Claude API
Cost
Free software; you pay for model usage
Setup effort
Medium · a few setup steps
You'll need
DockerJDK 21Node.js 22Python 3.11Shell / CLINetwork accessLocal filesystem
Typical use
Teams that want a collaborative AI coding assistant on their own server, accessible from any member's browser including phones, without client installs.
Not a fit if
  • Users who want a ready-made hosted service: you must deploy it on your own server
  • Developers on Python 3.13+ or unwilling to install JDK 21 and Node 22

What does this agent do, and when should you use it?

ZhikunCode is a MIT-licensed, self-hosted AI coding assistant built on a three-tier architecture (Java 21 Spring Boot backend, React 18 frontend, FastAPI Python service). It offers a full-featured Web UI and a CLI tool (aica), enabling browser-based permission approvals, plan negotiation, and task control—including from mobile and tablet. Key features include three multi-agent collaboration modes (Team/Swarm/SubAgent), an 8-layer command sandbox, a unified tool authorization gateway, a three-tier memory system, a Markdown-driven skill system, a Java SPI plugin system, MCP client/server support, and a cascade of context compression levels. It natively supports domestic Chinese models (Qwen, DeepSeek, Moonshot, Zhipu GLM, MiniMax) and can connect to any OpenAI-compatible provider. Optional one-click Docker deployment keeps data locally, and the official SWE-bench Lite benchmark shows a 56.0% (168/300) resolve rate.

ZhikunCode executes whole tasks described in natural language, such as coding, reviewing, fixing, testing, and even visualizations, via the Web UI or CLI. Users submit prompts through the browser or via aica command (e.g., aica "refactor this function"). The backend (Java) uses the QueryEngine to coordinate an agent loop, calling LLM APIs (e.g., Alibaba DashScope, DeepSeek) and running tools such as file reads/writes, Bash commands, Git operations, web search, and MCP tools. Each tool invocation goes through the ToolExecutionGateway and undergoes an 8-layer security check. In multi-agent mode, it coordinates sub-agents to work on project files; subagents can produce patches or deliverables. The AI can also generate diagrams, create skills/plugins, and persist memories (personal, project, team) to improve future responses. An LLM API key is a prerequisite.

  1. Teams that want a collaborative AI coding assistant on their own server, accessible from any member's browser including phones, without client installs.
  2. A developer using the aica CLI to pipe code for review or generation in a local or CI environment: cat src/main.py | aica "review this code".
  3. Developers needing multi-agent collaboration (Team/Swarm/SubAgent) to parallelize large refactors or delegate isolated subtasks.
  4. Users whose primary LLM providers are Chinese (Qwen/DeepSeek/Kimi/GLM/MiniMax) and want direct, low-latency connection without VPN.
  5. Security-conscious teams that want self-hosting to keep data on their own hardware, protected by the sandbox and per-tool authorization.
  6. Coders who want a copilot that can analyze multimodal images and capture rich web page snapshots via /snap.

How do you install or deploy this agent?

Two main ways. (1) Docker (recommended): clone the repo, copy .env.example to .env, fill in an LLM API key (e.g., LLM_PROVIDER_DASHSCOPE_API_KEY=sk-...), then run docker compose up -d and access http://localhost:8080. First build takes 15-30 minutes; requires Docker 20.10+, Compose V2, and ~4GB+ memory. (2) Local development: requires JDK 21, Node.js 22+, Python 3.11~3.12 (3.13+ not supported). Clone, set .env, run ./stop.sh and ./start.sh to launch backend (:8080), Python service (:8000), and frontend (:5173). Optionally enable a managed Python service inside the container and configure OSS for artifact publishing.

How do you use this agent?

After deployment, open http://localhost:8080 in your browser, select a trusted workspace directory, and type a task, e.g., 'write a TODO REST API in Elixir including migrations and smoke tests and run it'. You can switch to the Development Workbench to see conversation/tool history, approve/deny permission pop-ups, and monitor multi-agent runs. For CLI, install the Python package and use aica "..." with optional pipe-in: cat file | aica "prompt". Use -f json for structured output, --permission-mode for auth. Typical slash commands: /commit, /test, /fix, /review. Models are switchable in the Web UI via LLM_PROVIDER_* config. Tasks are tracked in-browser, and permissions expire after an adjustable deadline (default 300s). Context compaction/resume is automatic.

What are this agent's strengths and limitations?

Pros
  • True browser-first experience including mobile/tablet via web UI, no desktop app needed.
  • Native support for Chinese model providers (Qwen/DeepSeek/Kimi/GLM/MiniMax) without any proxy.
  • Built-in multi-agent collaboration (Team/Swarm/Sub) plus a 3-tier memory, skill and plugin system.
  • 8-layer sandbox, unified auth gateway, protected paths (.env/.git), and granular permission mode.
  • Self-hosted with Docker, data stays on your machine; evidence includes 1258+ backend tests, 207 frontend tests, and documented case studies.
Limitations
  • Local install requires JDK 21, Node 22+, and Python 3.11-3.12 (3.13+ explicitly unsupported).
  • No direct first-party OpenAI/Anthropic endpoints; must route via a third-party aggregator (ZenMux) and network access.
  • Feature-rich but may require reading docs; some features (browser automation, plugin sandbox) have a learning curve.
  • Docker image build is heavy; first build takes 15-30 minutes and needs 4GB+ RAM.
  • Optional OSS auto-upload is off by default; without Alibaba Cloud configured, no artifact publishing is available.

How does this agent compare with similar options?

Comparable to Aider, Cline, Cursor, Claude Code, and Copilot. Distinguishing strengths are the full browser operation, Docker self-hosting, native Chinese LLM support, and multi-agent capabilities. Trade-offs include a more complex security model and no first-party Anthropic/OpenAI API endpoints. SWE-bench results are public.

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
ZhikunCode This agent 56 · Major gaps Self-hosted serviceFree + model costs ★ 527 5d ago Java OpenAI API · Claude API
OtoDock 77 · Good Self-hosted serviceFreemium ★ 193 9d ago Python Codex · Claude Code
Synapse AI — Multi-Agent Orchestration Platform 70 · Some gaps CLIFree + model costs ★ 331 1d ago Python OpenAI API · Claude API
Agentica 63 · Some gaps CLIFree + model costs ★ 357 today Python OpenAI API · Claude API

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Major gaps
56/ 100 5-point scale 2.8 / 5
Trust 16/29
Reliability 8/14
Adaptability 10/18
Convention 9/18
Effectiveness 9/13
Verifiability 4/8
Why each dimension lost points
Trust16 / 29 · 2.8/5

Evidence shows unified authorization gateway, 8-layer Bash security checks, sensitive path interception, dangerous command blocking, environment variable whitelist, OSS publishing requires explicit instruction and high-risk confirmation, MCP services default off, but lacks deep verification of specific permission granularity and execution details. Deductions: data flow transparency insufficient, not detailing all data flows and storage locations; rollback mechanism only mentions Artifact declare→seal→hash verification, no operation-level rollback; source attribution only mentions OSS credentials not containing maintainer, not clarifying third-party code sources.

Reliability8 / 14 · 2.9/5

Evidence shows CI tests, runtime verification framework, state CAS management, session snapshots, but no test results or coverage. Deductions: failure messages not detailed on error handling and user prompts; dependency availability not verified, only lists dependency names.

Adaptability10 / 18 · 2.8/5

Evidence shows support for multiple scenarios (education, programming, office, life, entertainment, games), multiple models and deployment methods, but capability boundaries and trigger precision not explicit. Deductions: trigger precision not detailed on command parsing and intent recognition; environment fit not covering all OS and browsers.

Convention9 / 18 · 2.5/5

Evidence shows README, install notes, examples, FAQ, MIT license, but lacks version number, changelog, known limitations, and clear maintenance responsibility. Deductions: naming stability not verified, version number missing; maintenance responsibility not explicit, only contact email provided.

Effectiveness9 / 13 · 3.5/5

Evidence shows SWE-bench evaluation, case comparisons, performance data, but no actual user feedback or cost analysis. Deductions: output usability not detailed on artifact formats and integration; marginal value not quantified; cost-benefit not analyzed.

Verifiability4 / 8 · 2.5/5

Evidence shows SWE-bench report, case evidence, CI verification, but no third-party independent verification. Deductions: cross-source corroboration insufficient, mainly relying on own reports; fact-inference separation unclear, some promotional language not explicitly marked.

Risks and how to mitigate them
  • Publisher identity unverified; treat promotional claims with caution.
  • Static review cannot verify actual effectiveness of security mechanisms; dynamic testing needed.
  • Dependency security scans have continue-on-error, may ignore vulnerabilities.
  • Version number missing, cannot confirm update path and stability.
Evidence confidence: Low Reviewed Sep 07, 2026 Reviewed revision 65cad01dceb4 New commits since this review; the score may not cover them
See the full review method →

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v1.0.0 v1.0.0 - Initial Release Pre-release
    Release notes excerpt
    ZhikunCode v1.0.0 🎉 首个公开发布版本。 核心特性 - 🌐 独立 Web UI,浏览器即用,支持手机/iPad - 🐳 Docker 一键自托管部署 - 🤖 多 Agent 协作(Team/Swarm/Sub-Agent) - 🔒 8 层安全沙箱 + 14 步权限管道 - 🧩 MCP 工具扩展协议 - 🔧 47 个内置工具 - 📱 浏览器全流程操控(权限审批、方案协商、任务管控) - 🇨🇳 国产大模型原生支持(通义千问、DeepSeek、Moonshot 等) 快速开始 \```bash docker run -d -p 8080:8080 zhikuncode/zhikuncode:latest
    View on GitHub ↗

FAQ

How is my API key stored?
Keys are kept in your local .env and never committed. Data stays on your server unless you explicitly enable OSS publishing for a specific artifact.
Can I use it for tasks beyond programming?
It's marketed as a coding assistant, but via the browser/CLI and multi-agent it can handle broader tasks like generating games, building reports, or automating workflows—whatever the tools and model allow.
What happens if a tool call fails?
The agent includes a self-correction loop that analyzes compile/test failures and retries up to 3 times. Permissions that are denied or expired are reported back, and you can retry from the browser or CLI.
How is data protected?
Data lives in your own database (SQLite) by default; it is not uploaded anywhere unless you enable an OSS bucket and explicitly publish an artifact with a permission check.
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related agents