Open-source agent platform for Global × China enterprises — wire every system through one agent core. Self-hosted, any LLM.
Open-source agent platform for Global × China enterprises — wire every system through one agent core. Self-hosted, any LLM.
[!TIP] ☁️ Skip the setup — try FIM One on Cloud. A managed version is live at cloud.fim.ai — no Docker, no API keys, no config. Sign in and start connecting your systems in seconds. Early access, feedback welcome.
Global enterprises run a sprawl of systems that don't talk to each other — ERP, CRM, OA, HR, finance, databases, IM platforms across regions. FIM One is the all-in-one agent platform that wires every system you already run into one agent core — global SaaS on one side, the full China stack (Feishu, WeCom, DingTalk, DM, Kingbase, etc.) on the other. One brain. Every system. Global SaaS × China Stack.
| Mode | What it is | Access |
|---|---|---|
| Standalone | General-purpose AI assistant — search, code, KB | Portal |
| Copilot | AI embedded in a host system's UI | iframe / widget / embed |
| Hub | Central AI orchestration across all connected systems | Portal / API |
graph LR
ERP <--> Hub[" FIM One Agent Core"]
Database <--> Hub
Lark <--> Hub
Hub <--> CRM
Hub <--> OA
Hub <--> API[Custom API]Dashboard — stats, activity trends, token usage, and quick access to agents and conversations.
Agent Chat — ReAct reasoning with multi-step tool calling against a connected database.
DAG Planner — LLM-generated execution plan with parallel steps and live status tracking.
Using Agents
Using Planner Mode
git clone https://github.com/fim-ai/fim-one.git
cd fim-one
cp example.env .env
# Edit .env: set LLM_API_KEY (and optionally LLM_BASE_URL, LLM_MODEL)
docker compose up --build -dOpen http://localhost:3000 — on first launch you'll create an admin account. That's it.
docker compose up -d # start
docker compose down # stop
docker compose logs -f # view logsPrerequisites: Python 3.11+, uv, Node.js 18+, pnpm.
git clone https://github.com/fim-ai/fim-one.git && cd fim-one
cp example.env .env # Edit: set LLM_API_KEY
uv sync --all-extras
cd frontend && pnpm install && cd ..
./start.sh dev # hot reload: Python --reload + Next.js HMR| Command | What starts | URL |
|---|---|---|
./start.sh |
Next.js + FastAPI | localhost:3000 (UI) + :8000 |
./start.sh dev |
Same, with hot reload | Same |
./start.sh dev:api |
API only, dev mode (hot reload) | localhost:8000 |
./start.sh dev:ui |
Frontend only, dev mode (HMR) | localhost:3000 |
./start.sh api |
FastAPI only (headless) | localhost:8000/api |
For production deployment (Docker, reverse proxy, zero-downtime updates), see the Deployment Guide.
FeishuGateHook gates sensitive tool calls behind a human approval card posted to a Feishu group. Extensible to audit logging, read-only-mode guards, and rate limits (v0.9).FIM_GUARDRAILS_OUTPUT.AUTO_ROUTING.read/create token counts captured per turn, surfaced in the chat done payload and logged so operators can verify cache hits and detect relay stations that don't honor the discount.read_uploaded_file tool. Intelligent document processing: PDFs, DOCX, and PPTX files get vision-aware processing with embedded image extraction when the model supports vision. Smart PDF mode extracts text from text-rich pages and renders scanned pages as images.convert_to_markdown tool turns PDF / Word / Excel / PowerPoint / HTML / images / audio / Outlook .msg / EPUB / YouTube transcripts into clean Markdown via Microsoft MarkItDown. Vision-capable LLMs OCR embedded images and scanned pages — works with Claude, Gemini, Bedrock, and any LiteLLM-supported provider, no per-provider adapter code.CODE_EXEC_BACKEND=docker).find_replace, agents can apply line-hunk patches with fuzzy whitespace matching via file_ops.apply_patch — robust to multi-line edits where exact-substring match would be brittle.[N] citations. Vision-aware ingestion routes scanned PDFs and Office embedded images through the workspace's default vision LLM for OCR.BaseChannel abstraction for outbound messaging across Slack, Microsoft Teams, Discord, Feishu (Lark), WeCom, and DingTalk. First shipping implementation is Feishu; Slack / Teams / WeCom / Email are next on the v0.9 roadmap.GateHook (Feishu today, Slack/Teams next) posts an Approve / Reject card to your group when a sensitive tool call fires; the tool blocks until a group member taps a verdict. Human-in-the-loop approval without a custom workflow engine.approver_user_id and decided_at whether the verdict came from chat or from the channel. Auto mode falls back to inline if no channel is linked, so agents always get a real approval UX.WORKERS=N with a Redis interrupt broker for cross-worker relay.0 for unlimited. Admin feature flag gates the entire pipeline; private deployments without Stripe stay clean.tool_result rows persist after interrupted turns; clients auto-reconnect dropped SSE streams via /chat/resume with exponential backoff and a "Reconnecting…" indicator.Deep dive: Architecture · Hook System · Channels · Execution Modes · Why FIM One · Competitive Landscape
graph TB
subgraph app["Application Layer"]
a["Portal · API · iframe · Feishu · Slack · WeCom · DingTalk · Teams · Email · Contract Systems · Custom Webhooks"]
end
subgraph mid["FIM One"]
direction LR
m1["Connectors<br/>+ MCP Hub"] ~~~ m2["Orch Engine<br/>ReAct / DAG"] ~~~ m3["RAG /<br/>Knowledge"] ~~~ m5["Hook System<br/>+ Channels"] ~~~ m4["Auth /<br/>Admin"]
end
subgraph biz["Business Systems"]
b["ERP · CRM · OA · Finance · Databases · Contract Mgmt · Custom APIs"]
end
app --> mid --> bizEach connector and channel is a standardized bridge — the agent doesn't know or care whether it's talking to SAP, a custom contract system, or a Feishu group. The Hook System runs platform code outside the LLM loop for approvals, audit, and rate limits; Channels carry outbound notifications and approval cards to external IM platforms. See Connector Architecture, Hook System, and Channels for details.
FIM One works with any OpenAI-compatible provider:
| Provider | LLM_API_KEY |
LLM_BASE_URL |
LLM_MODEL |
|---|---|---|---|
| OpenAI | sk-... |
(default) | gpt-4o |
| DeepSeek |
No open issues yet, or sync has not completed.