selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

ZhikunCode logo

Self-host ZhikunCode

v1.0.0

Open-source AI coding assistant with browser UI and agents

BetaOpen SourceMIT
Updated6 months ago
LanguageJava
Setup difficultyModerate
Stars
532
RAM
4GB+
Ports
8080 (HTTP web UI and API), 8000 (Python analysis service (optional, internal))
Requires
LLM API Provider
Install with Docker Compose
ZhikunCode screenshot 1ZhikunCode screenshot 2ZhikunCode screenshot 3ZhikunCode screenshot 4ZhikunCode screenshot 5

What is ZhikunCode?

ZhikunCode is a self-hosted AI coding platform that provides a complete browser-based development environment. It features a three-tier architecture with Java Spring Boot backend, React TypeScript frontend, and Python FastAPI analysis service. Users can delegate tasks to multiple specialized agents that run in parallel, with background task support and real-time activity tracking. The platform includes 40+ built-in tools for file operations, terminal, search, and browser automation, plus MCP protocol support for dynamic tool extension. Security is built-in with an 8-layer Bash sandbox, unified authorization gateway, and tool execution gateway. It natively connects to Chinese LLM providers (Qwen/DashScope, DeepSeek, Moonshot/Kimi, Zhipu GLM, MiniMax) without requiring external network access. Deployment is via Docker Compose with persistent SQLite storage for sessions and memories. The project is MIT licensed and actively developed.

Should you self-host ZhikunCode?

ZhikunCode scores 51/100 on selfhost.directory (how scoring works) and ranks #33 of 120 in AI Assistant. It has 532 GitHub stars.

It shipped 1 stable release in the past year. The latest, v1.0.0, came out on 21 April 2026.

Setup is moderate: expect some configuration beyond a single command. It is MIT-licensed and written mostly in Java.

Its closest alternative on selfhost.directory is openhands (87/100, 92 086 stars). It scores higher overall, so compare the two before you pick. See ZhikunCode vs openhands side by side.

Features

  • 8-layer security sandbox
  • Background tasks
  • Browser-based Web UI
  • Cross-session memory
  • MCP protocol support
  • Multi-Agent Collaboration
  • Multimodal image chat
  • Native Chinese LLM support
  • Plugin System
  • Project and session trust boundaries
  • Runtime verification framework
  • Skill System
  • Smart context management
  • Voice interaction (ASR/TTS)

ZhikunCode README

How to install ZhikunCode

Install ZhikunCode with Docker Compose

Environment variables
LLM_PROVIDER_DASHSCOPE_API_KEY, LLM_PROVIDER_DEEPSEEK_API_KEY, LLM_PROVIDER_MOONSHOT_API_KEY, LLM_PROVIDER_ZHIPU_API_KEY, LLM_PROVIDER_MINIMAX_API_KEY, LLM_PROVIDER_ZENMUX_API_KEY, LLM_PROVIDER_OPENROUTER_API_KEY, ZHIKUN_PORT, JAVA_OPTS, WORKSPACE_PATH, ZHIKUN_OSS_ENABLED, ZHIKUN_OSS_ENDPOINT, ZHIKUN_OSS_REGION, ZHIKUN_OSS_BUCKET, ZHIKUN_MEOO_ENABLED, MCP_SERVICE_STATE_PATH, SKILL_STATE_PATH

git clone https://github.com/zhikunqingtao/zhikuncode.git && cd zhikuncode cp .env.example .env

编辑 .env,填入你的 LLM API Key

docker compose up -d

Production deployment, builds image on first run (15-30 min), subsequent starts in seconds

ZhikunCode releases & version history

FAQ

What if port 8080 is already in use?

Change ZHIKUN_PORT in .env (e.g., ZHIKUN_PORT=9090), then docker compose down && docker compose up -d.

How to troubleshoot Docker deployment issues?

Check docker ps -a, docker logs zhikuncode, docker inspect health. Common issues: missing API key, incomplete image build (run docker compose up --build), insufficient memory (adjust deploy.resources.limits.memory in docker-compose.yml).

Why Java + React + Python three-tier architecture?

Java 21/Spring Boot for strong typing, enterprise ecosystem, WebSocket, virtual threads; React 18/TypeScript for componentization, type safety, Vite, TailwindCSS; Python FastAPI for mature code analysis/AST ecosystem, async performance, isolation from main backend.

How to contribute code?

Fork repo, create feature branch, commit, create PR. See CONTRIBUTING.md. Dev environment needs JDK 21, Node.js 22+, Python 3.11-3.12, Maven 3.9+.

Does it conflict with VS Code extensions like Copilot or Cline?

No conflict. ZhikunCode is an independent web app that doesn't depend on any IDE or require plugins.

Does it support offline/air-gapped deployment?

Yes, fully offline with Ollama for local models, or use Chinese LLMs with domestic network access only.

Where is data stored and is it secure?

Session data in SQLite database in Docker volume zhikun-data, project code via volume mount, API keys only in .env and container env vars. No telemetry runs.

What are the Docker deployment requirements?

Docker 20.10+, Docker Compose V2, 4GB+ RAM, and network access to LLM API endpoints.

Which LLMs are supported?

All OpenAI API-compatible models including Qwen/DashScope, DeepSeek, Moonshot/Kimi, Zhipu GLM, MiniMax, OpenAI, Anthropic Claude, and local models via Ollama/vLLM.

More in AI Assistant

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…