RepositoryRust
taichuy

taichuy/1flowbase

Build for agents — from the AI Gateway to the entire application stack.

294stars
25forks
42issues
3views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: llm-router

#1 Repository of the week

1
TINIX TRENDING·Topic: multi-model

#1 Repository of the week

1
TINIX TRENDING·Topic: llm-observability

#1 Repository of the week

1flowbase

1flowbase Logo

English | 简体中文

GitHub stars License OpenAI compatible Claude compatible Self-hosted

Community: WeChat | WeChat Official Account | Twitter

Give local AI agents one model endpoint that can run your own observable multi-model workflow behind the scenes.

Claude Code, Codex, OpenCode, Cline, Continue, and SDKs call one normal model name. 1flowbase can run a workflow behind that name: mount a vision model for screenshots, call several models as a Fusion-style review panel, verify or format the result, and show the full trace of model calls, tool callbacks, tokens, latency, and failures.

Agent client -> one virtual model endpoint -> your workflow -> trace / tokens / cost -> final answer
If you need to...1flowbase helps you...
make a text coding model understand screenshotsmount GLM-5V-Turbo, Gemini, GPT vision, OCR, or another visual model as a tool
run a Fusion-style model panelfan out to several branch models, synthesize the result, and publish it as one endpoint
debug why an agent answer was slow, expensive, or wronginspect workflow nodes, model calls, tool callbacks, token usage, latency, and errors
reuse a better model chain from existing clientspublish the workflow as OpenAI-compatible or Claude-compatible model APIs

Workflow Editor Preview


What You Can Build

Add vision to text-first coding models

Keep GLM-5.2, DeepSeek, or another strong text coding model as the main planner, then let 1flowbase route screenshots, UI images, charts, and PDF pages to a mounted vision model.

Claude Code
  -> 1flowbase virtual model endpoint
  -> GLM-5.2 / DeepSeek / other main coding model
  -> mounted vision tool
  -> GLM-5V-Turbo / Gemini / GPT vision / OCR model
  -> structured visual result
  -> final coding answer

Guide: Make GLM-5.2 See Images in Claude Code with 1flowbase

Publish a Fusion-style multi-model reviewer

1flowbase includes a fusion template. Your client calls one model name; 1flowbase asks several branch models, runs a synthesis model, returns the final answer, and keeps every branch visible.

User request
  -> Main LLM
  -> fusion tool
     -> Branch LLM A
     -> Branch LLM B
     -> Branch LLM C
     -> Synthesis LLM
  -> final answer

Guide: Fusion-Style Workflows: Publish a Multi-Model Panel as an Observable Virtual Model

Publish workflow-backed model APIs

Build the workflow once, then expose it through common model APIs:

ProtocolAPI pathTypical usage
OpenAI Responses API/v1/responsesnewer OpenAI-style clients and application code
OpenAI Chat Completions API/v1/chat/completionsSDKs, coding tools, chat clients, application frameworks
Claude-compatible Messages API/v1/messagesClaude-compatible clients that support custom endpoints

Installation or Upgrade

Linux/macOS:

curl -fsSL https://raw.githubusercontent.com/taichuy/1flowbase/main/scripts/shell/docker-deploy.sh | sh

Windows PowerShell:

irm https://raw.githubusercontent.com/taichuy/1flowbase/main/scripts/powershell/docker-deploy.ps1 | iex

Windows CMD:

powershell -NoProfile -ExecutionPolicy Bypass -Command "irm https://raw.githubusercontent.com/taichuy/1flowbase/main/scripts/powershell/docker-deploy.ps1 | iex"

Run From Source

Use this path when you want to develop 1flowbase itself.

Requirements: Node.js >= 24.0.0, pnpm, latest stable Rust, and Docker for local middleware.

git clone https://github.com/taichuy/1flowbase.git
cd 1flowbase

docker compose -f docker/docker-compose.middleware.yaml up -d

cd web
pnpm install
pnpm dev

Frontend:

http://127.0.0.1:3100

Start backend services:

cd api
# Copy api/apps/api-server/.env.example to .env before the first run.
cargo run -p api-server --bin api-server
cargo run -p plugin-runner --bin plugin-runner

Default backend endpoints:

API Server: http://127.0.0.1:7800
Plugin Runner: http://127.0.0.1:7801

Script-assisted startup:

node scripts/node/dev-up.js
node scripts/node/dev-up.js status
node scripts/node/dev-up.js stop
node scripts/node/dev-up.js restart

See scripts/README.md for more options.


Where 1flowbase Fits

1flowbase is not just a model proxy and not just a generic workflow canvas.

Tool categoryWhat it usually doesHow 1flowbase is different
LLM gateway / model routerroutes one request to one provider or modelcomposes multiple model and tool nodes into one workflow-backed virtual model
AI workflow builderbuilds an AI app or workflowexposes the workflow as OpenAI / Claude-compatible model APIs
Agent frameworkhelps developers code agent graphsprovides a visual runtime, protocol publishing, and execution logs
Observability / cost trackershows token or spend totalsconnects cost to workflow nodes, model calls, tool callbacks, and trace logs
Model routers choose a model.
1flowbase builds a new virtual model from a workflow.

Feature Preview

Publish as OpenAI-compatible API

Publish OpenAI API

Publish as Claude-compatible Messages API

Publish Claude API

Customize exposed model information

Custom Model Settings

Use in local AI agent clients

Call a published workflow from compatible clients that support custom model endpoints.

Claude Code Terminal Usage

Inspect execution logs

Trace model requests, node inputs and outputs, tool callbacks, response content, latency, and errors.

Detailed Execution Logs

View tool callback traces

Tool Callback Trace Logs

Track token consumption

Token Consumption Dashboard


Common Use Cases

Make a text coding model understand screenshots

Screenshot / UI mockup / chart
  -> vision tool
  -> structured visual context
  -> strong coding model
  -> patch, plan, or explanation

Useful for UI reconstruction, frontend debugging, visual regression analysis, chart reading, PDF page understanding, and design-to-code workflows.

Build a Fusion-style reviewer

Architecture proposal
  -> cheap broad reviewer
  -> strong reasoning reviewer
  -> provider-diverse reviewer
  -> synthesis model
  -> final recommendation

Useful for architecture review, research synthesis, code review, document review, and high-stakes agent decisions.

Control cost with model cascading

Simple classification -> small model
Formatting -> small model
Complex reasoning -> strong model
Final verification -> verifier node

Guarantee output structure

Use verifiers, JSON Schema validation, and formatter nodes before returning the final result. This is useful for JSON outputs, API responses, tool call parameters, code patches, document generation, and automated task results.

Build a programmable upstream model for agents

Code generation -> test / lint check -> reviewer node -> fix node -> final patch

The client calls one model name while 1flowbase runs your workflow behind it.


Current Status

Implemented

  • visual workflow editor
  • multi-node workflow orchestration
  • virtual model endpoint publishing
  • OpenAI Responses protocol support
  • OpenAI Chat Completions protocol support
  • Claude-compatible Messages protocol support
  • streaming response support
  • mounted LLM tools for multimodal and branch-model workflows
  • fusion workflow template
  • execution logs
  • tool callback traces inside 1flowbase workflows
  • application-level token consumption statistics
  • prompt and model configuration version history

Enhancing

  • deeper local agent conversation collection
  • session search and playback
  • Token Bill of Materials by prompt, history, tool definitions, command outputs, media inputs, and nodes
  • abnormal cost detection and optimization suggestions
  • session export and Recall Pack generation
  • more Claude Code / Codex / OpenCode / Cline / Continue templates
  • MCP-aware plugin nodes and tool-call source attribution

Planned

  • low-code application building platform for AI organizations
  • team workspace and multi-tenant management
  • permissions, approval, audit, and cost governance
  • support for more local AI agent clients
  • template market and workflow recipe ecosystem

Note: 1flowbase is not currently positioned as an MCP server or MCP gateway. MCP-aware capabilities are on the roadmap. The current product focuses on publishing compatible model endpoints and tracing 1flowbase workflow execution.


Transparency and Security

1flowbase is designed for transparent, self-hosted AI workflow execution.

Recommended principles:

  • self-hosted first
  • transparent model chains
  • auditable node calls
  • traceable token usage
  • configurable log retention
  • sensitive data masking
  • explicit model and workflow configuration

1flowbase does not advocate stealthy model replacement. Published endpoints should be configured intentionally, observed clearly, and governed by the project owner.


Guides


Repo Layout

web/          Frontend root, powered by pnpm + Turbo
api/          Rust backend workspace
api/apps/     Backend service entry points
api/crates/   Shared backend crates
api/plugins/  Plugin workspace, HostExtension manifests, and templates
docker/       Local middleware orchestration and self-hosted stack
scripts/      Development, testing, verification, and debugging scripts

Contributing

Contributions are welcome. Before submitting a pull request, run:

node scripts/node/verify.js repo

Project guidelines:


  • Linux.do - Learn AI, on L Station.
  • Aionui - Remotely control AI to work via mobile phone.
  • OfficeCLI - Office suite designed for AI agents.
  • deepseek-pp - DeepSeek web chat browser extension.
  • MuseAI - Local AI companion, text adventure, and story immersion app.
  • FrontAgent - AI Agent system designed specifically for front-end engineering.
  • RedBox - Localized AI creative workbench for Xiaohongshu creators.

License

This project is licensed under Apache-2.0.


Contributors

Contributors


Star History

Star History


If you want local AI agents to call observable multi-model virtual models, give 1flowbase a star.

Report Bug · Request Feature

Similar Projects

Discover other similar projects and AI models.

RepositoryRust
ThinkWatchProject/ThinkWatch

Self-hosted AI API and MCP gateway for organizations: SSO and RBAC, per-user identity for MCP tool calls, PII redaction and tool-call guards, rate limits, budgets, cost accounting and audit logs.

818
Dec 1, 2026
RepositoryGo
maximhq/bifrost

Open-source, high-performance AI gateway that works as your LLM gateway, MCP gateway and agent gateway. One OpenAI-compatible API for 10,000+ models, with failover, load balancing, semantic caching, virtual keys, budgets and MCP Code Mode. Works with any SDK or agent and adds under 200µs of overhead at 5k RPS.

10.1k
Dec 1, 2026
RepositoryTypeScript
ThinkWatchProject/ThinkWatch-Lite

Local gateway for Claude Code, Codex and other AI clients on macOS, Windows and Linux: switch upstreams without touching clients, keep API keys from relays, cut off malicious tool calls, trace every request.

965
Nov 25, 2026
RepositoryTypeScript
n8n-io/n8n

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

212.9k
Dec 2, 2026
RepositoryRust
respanai/respan-gateway

Open-source LLM gateway in Rust. One endpoint for OpenAI, Anthropic, Gemini and every other vendor. Any SDK, any model, any tool.

1.2k
Nov 30, 2026
RepositoryRust
bitrouter/bitrouter

elastic inference for your agentic workloads

242
Nov 28, 2026
RepositoryRust
nyroway/nyro

Self-hosted AI Gateway — connect Claude Code, Codex, Gemini CLI and any SDK to any model provider with protocol translation.

200
Oct 16, 2026
Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...

♥0
157.6M
Jun 1, 2026
RepositoryGo
QuantumNous/new-api

Open-source AI gateway. Self-hosted LLM gateway with OpenAI-, Claude- and Gemini-compatible APIs, model routing, access control, usage tracking and cost accounting.

52.7k
Nov 27, 2026