Fluxion Bus

Fluxion Bus

Enables AI agents to delegate scoped tasks across multiple providers like Codex, Claude Code, and Antigravity through a single local MCP server, with quota monitoring, notifications, and remote control via messaging apps.

Category
访问服务器

README

Fluxion Bus

English | 简体中文 | 日本語

https://github.com/user-attachments/assets/7ff8be14-f4e6-4bd9-9ceb-bbf425fafba3

Illustrative demo with staged data, not a live recording.

Fluxion Bus is the open-source project behind the Fluxion macOS app and local agent gateway.

Fluxion lets your primary AI agent delegate scoped tasks across Codex, Claude Code, and Antigravity through one local MCP server.

Stay inside your current agent while Fluxion routes work to another provider, preserves sessions, reports progress and results, and records file changes for review or recovery.

Fluxion also reads provider-reported quota windows, detects and notifies you when the provider resets them, and can automatically make a minimal Agent call after a reset to start the next rolling window immediately.

Quota and usage data are not limited to tasks delegated through Fluxion. Fluxion reads them directly from provider APIs, local agent services, or local agent histories; it does not calculate provider quota from Fluxion task records.

Local-first, single-tenant, and self-hosted. No Fluxion account or SaaS dependency; default exposure is 127.0.0.1.

Why Fluxion

Cross-provider delegation without leaving your primary agent

┌────────────────────────────────────────────┐
│ Primary agent                              │
│ Codex / Claude Code / Antigravity          │
└─────────────────────┬──────────────────────┘
                      │ MCP: delegate scoped subtask
                      ▼
              ┌──────────────────┐
              │ Fluxion MCP      │
              │ route + supervise│
              └────────┬─────────┘
                       │
          ┌────────────┼────────────┐
          ▼            ▼            ▼
       Codex      Claude Code   Antigravity
          │            │            │
          └────────────┼────────────┘
                       ▼
       status / result / changed files / revert
                       │
                       ▼
                 Primary agent
  • Route each subtask to a different provider.
  • Continue executor-native sessions across repeated calls.
  • Choose read-only investigation or explicitly authorized edits.
  • Inspect async status, logs, artifacts, and changed files.
  • Revert recoverable text-file changes after review.

Turn quota resets into usable windows

 Claude quota     Codex quota     Antigravity quota
      └───────────────┬──────────────────┘
                      ▼
             ┌─────────────────┐
             │ Fluxion quota   │
             │ monitor + sched │
             └────────┬────────┘
                      │
         ┌────────────┼──────────────┐
         ▼            ▼              ▼
      Web UI      macOS app     Reset detected
                                      │
                               Auto Ping + notify
                          Slack/Telegram/WeChat/LINE/QQ/Feishu
  • See remaining quota and reset countdowns across providers.
  • Monitor provider/account quota, including usage made outside Fluxion.
  • Use the browser-based console on macOS or Linux.
  • Use the native macOS app for menu bar quota, service controls, and setup.
  • Detect provider-side quota resets.
  • Automatically make a minimal Agent call after a detected reset to start the next rolling window.
  • Send quota-reset notifications through Slack, Telegram, WeChat, LINE, QQ, or Feishu.

Control local agents remotely

Send tasks from Slack, Telegram, WeChat, LINE, QQ, or Feishu while away from your computer. Fluxion routes the message to a local Codex, Claude Code, or Antigravity executor, then returns progress updates and the final result in the same conversation.

Phone / remote device
Slack/Telegram/WeChat/LINE/QQ/Feishu
          │
          ▼
 Fluxion messaging gateway
          │
          ▼
Codex / Claude / Antigravity
          │
          ▼
 progress updates + final result

Remote conversations preserve their executor session, so follow-up messages can continue the same task context. Users can also inspect recent tasks, check gateway status, reset a conversation, or cancel queued/running tasks through channel control commands.

WeChat uses iLink QR-code login. Bind the account once, enable the channel, and start the same messaging gateway used by the other messaging channels.

Platform Support

Capability macOS Linux Windows
MCP cross-provider delegation Supported Expected, not verified Not verified
Web quota console Supported Expected, not verified Not verified
Scheduler auto-ping and notifications Supported Expected, not verified Not verified
Native macOS app macOS 12+ Not available Not available

Linux support is expected for non-native features based on the implementation, but has not yet been manually verified.

The menu bar app runs on macOS 12 or newer; its Launch at Login toggle requires macOS 13+ and is disabled on macOS 12.

Provider quota probes depend on compatible local credentials or services. Antigravity live quota, for example, requires its local sidecar to be running. The displayed quota comes from those provider or agent sources, not from a counter of tasks routed through Fluxion.

Install and Verify

Requirements:

  • At least one installed and authenticated executor CLI: codex, claude, or agy
    • Codex: either the standalone CLI, or the Codex desktop app — its bundled CLI is detected automatically on macOS, and its login satisfies auth.
  • Python 3.12+ (Python 3.13 recommended) for CLI/backend installs. The macOS desktop app can install python@3.13 through Homebrew when needed.
  • Node 18+ only when rebuilding the Web console frontend locally.

macOS desktop app (recommended)

For macOS users on Apple Silicon (M-series chips), install the prebuilt Fluxion.app from the latest GitHub Release DMG, drag it into /Applications, and open it. (Note: The prebuilt Release DMG is targeted at Apple Silicon. Intel Mac users should build from source or use the CLI installation).

The current prebuilt DMG is unsigned and not notarized. On first launch, macOS Gatekeeper may block it because Apple cannot verify the developer. If you downloaded it from the official GitHub Releases and verified SHA256SUMS, open it without Terminal by trying once, then going to System Settings -> Privacy & Security, finding the Fluxion warning near the bottom, and clicking Open Anyway before launching it again. If you're comfortable with the command line, you can instead remove the quarantine flag directly:

xattr -dr com.apple.quarantine /Applications/Fluxion.app

On first launch, Fluxion uses ~/.local/share/fluxion as the managed backend path and offers Install / Repair. The app then installs the backend from the source snapshot and dependency wheels bundled inside the app, creates .venv, initializes .env, and starts the local services — no git, network access, Xcode Command Line Tools, or local Node build required.

If Python 3.12+ is not already available and Homebrew is installed, the installer uses Homebrew to install python@3.13; without Homebrew, the app points you to the python.org installer before setup starts. Executor CLIs such as codex, claude, or agy still need to be installed and authenticated separately.

Let your agent configure CLI/MCP

For CLI-first use, MCP registration, or non-desktop installs, the agent you already use can run the backend installation end to end: prerequisites, installer, MCP registration for your client, and verification. Paste this into Claude Code, Codex, or Antigravity from the project directory you want Fluxion to work on:

Read https://raw.githubusercontent.com/superposed-labs/fluxion-bus/main/docs/agent-install.md
and follow it to install and configure Fluxion on this machine. Use the current
directory as the first authorized workspace, register the MCP server with the
client you are running in, then run the verification steps and report the results.

The agent follows docs/agent-install.md, which wraps the same installer used below. It finishes with a per-component status report covering the backend CLI, MCP registration, and Web console static assets. The macOS desktop app is distributed separately through the Release DMG.

Manual install

Install or update Fluxion for the current user:

curl -fsSL https://raw.githubusercontent.com/superposed-labs/fluxion-bus/main/scripts/install.sh \
  | bash -s -- --no-desktop

The installer uses ~/.local/share/fluxion, links commands into ~/.local/bin, and installs the CLI, Gateway, and MCP commands. The prebuilt macOS app is distributed through the Release DMG; use the source installer for backend/CLI setup and development workflows. Run the same command again to update while preserving .env and data/.

By default, the directory where the install command is run becomes the first authorized workspace. Override it when needed:

curl -fsSL https://raw.githubusercontent.com/superposed-labs/fluxion-bus/main/scripts/install.sh \
  | FLUXION_WORKSPACE=/absolute/path/to/project bash -s -- --no-desktop

Uninstall while preserving configuration and data in a timestamped backup:

~/.local/share/fluxion/scripts/uninstall.sh

Use --purge only when the configuration and runtime data should also be deleted.

Development install

For a source checkout used for Fluxion development:

git clone git@github.com:superposed-labs/fluxion-bus.git
cd fluxion-bus

python3 -m venv .venv
source .venv/bin/activate
pip install -e .

# Detect an executor and create a minimal .env with real paths.
fluxion init

# Check configuration, executor availability, and workspace authorization.
fluxion doctor

# Verify the local execution path with a read-only task.
fluxion run "Summarize this project and explain how to run its tests."

Allow edits explicitly:

fluxion run --write "Fix the failing tests."

Initialize Fluxion for another workspace:

fluxion init --workspace /absolute/path/to/project
fluxion doctor --workspace /absolute/path/to/project
fluxion run --workspace /absolute/path/to/project "Inspect this project."

fluxion init creates a deliberately small .env; .env.example mirrors that minimal shape for manual setup. For advanced manual configuration, see .env.advanced.example, Configuration, and scripts/install.sh.

MCP Delegation Quick Start

Register fluxion-mcp with the primary agent where you already work. Complete client-specific examples for Claude Code, Codex, and Antigravity are in the MCP reference.

Example Claude Code registration:

claude mcp add -s user \
  -e FLUXION_ENV_FILE=<fluxion-repo>/.env \
  -e FLUXION_WORKSPACE_ROOT=<fluxion-repo> \
  -e FLUXION_DATA_DIR=<fluxion-repo>/data \
  fluxion -- <fluxion-repo>/.venv/bin/fluxion-mcp

The primary agent can then delegate a focused subtask:

{
  "agent": "claude",
  "project": "web",
  "profile": "inspect",
  "mode": "read-only",
  "prompt": "Investigate why the login form is submitting twice."
}

Fluxion returns a run_id. The primary agent can inspect status, fetch the result, cancel the run, review changed files, or revert a reviewed workspace-writing run through the same MCP server.

For multi-project usage, configure project keys with FLUXION_PROJECTS_FILE; see Project registry.

Quota Monitoring Quick Start

Web Console

If you installed the prebuilt app or used the installer, the console is ready. Start it directly:

fluxion-web                  # http://127.0.0.1:8765

(If running from a Git clone or rebuilding static assets: cd web && npm install && npm run build && cd .. before running the command).

macOS Menu Bar App

If you downloaded the prebuilt Fluxion.dmg, drag it into /Applications and open it.

If building the menu bar app from your local source checkout (this compiles natively for your machine's architecture, whether Apple Silicon or Intel):

./desktop/build.sh
open desktop/Fluxion.app

The menu bar app can configure and start quota monitoring, automatic pings, reset notifications, and companion services. The actual background auto-ping and notification work is performed by fluxion-scheduler, which also runs without the menu bar app on Linux.

The app can remain inside the repository or be copied to /Applications. When launched outside the repository, it asks the user to select the Fluxion source checkout and stores that path under ~/Library/Application Support/Fluxion/.

fluxion-scheduler

See Quota monitoring and Scheduler for provider sources, configuration, and always-on deployment.

Messaging Channels

fluxion-gateway accepts remote tasks from Slack, Telegram, WeChat, LINE, QQ, and Feishu and submits them through the same router used by MCP and the local CLI. It replies in the same conversation with execution status and the final result.

fluxion-gateway

See Configuration for channel and workspace settings.

Documentation

  • Architecture — full system diagram, surfaces, shared state, and project layout
  • Agent-assisted installation — step-by-step install instructions written for an AI agent to execute
  • MCP reference — client setup, tools, status states, cancel, and safe revert flows
  • Quota monitoring — provider sources, Web console, macOS app, privacy, and notifications
  • macOS app — release packaging, managed backend, /Applications installation, and development override
  • Usage statistics — agent-history coverage, independence from Fluxion delegation, cost estimates, and Fast-mode limitations
  • Scheduler — auto-ping, quota-reset triggers, cron rules, and deployment
  • Configuration — executors, authorization, channels, Web UI, and environment variables
  • Deployment — launchd and systemd service templates

License

Apache License 2.0 — see also NOTICE.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选