Introducing connector.json
One JSON file. Multiple AI agents. Zero custom integration.The Problem
In 2026, every developer has multiple AI coding tools. Claude Code for deep reasoning. Codex for speed. Gemini for breadth. Aider for lightweight edits. But they can’t work together.The Solution
connector.json is a declarative spec for AI-to-AI orchestration. Where MCP defines how AI connects to tools (databases, APIs, browsers), connector.json defines how AI coordinates with other AI.How It Works
1. Define your workflow
2. Run it
3. What happens
What connector.json Can Describe
Cost-Aware Routing
Use cheap models for research, expensive models for implementation.Provider Failover
If Anthropic’s API goes down, work continues on Gemini. If that fails, fall back to a local model.Cross-Machine Teams
Workers on your laptop and a build server, coordinated by one file.Heterogeneous Review Pipeline
Each AI brings its strengths to a multi-stage review.Nightly Memory Consolidation
A scheduled pipeline that maintains AI’s own memory.The Execution Layer: PTY-for-AI
connector.json is a spec. It needs a runtime. That runtime is PTY-for-AI — a pattern where AI sessions run in real terminal instances (PTY), not JSON pipes. A persistent daemon manages sessions. A headless server bridges them to the network.connector.json vs MCP
They’re complementary layers.Beyond Pipeline
The examples above show pipeline topology — sequential phases with parallel workers. connector.json also supports:- Dialogue — two agents in multi-round conversation, debate, peer review
- Meeting — all participants hear every voice, agenda-driven
- Mesh — any agent talks to any agent, no leader required
- Recursive Teams — agents spawn their own sub-teams, unlimited depth
- Cross-Machine — agents on different physical machines, one spec
Status
| Component | Status |
|---|---|
| connector.json spec v2.0 | Draft — this document |
| PTY daemon | Production (launchd service) |
| Headless server | Production (gateway + P2P) |
| Session plugins (worktree, sandbox) | Implemented |
niia run connector.json | In development |
| Cross-machine orchestration | Implemented (niia remote) |
| Provider failover | Designed |
| Scratchpad + Mailbox | Designed |
Try It
connector.json is an open spec by OpenCLIs. Runtime implementation by NIIA (Monolex). Spec: connectorjson.org