ConnectOnion
Open-source agent CLI harness whose `co` command gives AI agents access to email, browsers, files, chat apps and other agents.
At a Glance
ConnectOnion agent CLI harness core, licensed under Apache License 2.0; free to use, modify and distribute. Model usage via own provider keys is an external cost.
Engagement
Available On
Listed Nov 2026
About ConnectOnion
ConnectOnion is an open-source agent CLI harness from OpenOnion. A single command line, co, gives AI agents access to Gmail and Outlook, a logged-in browser, files, chat apps and other agents. It is also a Python framework for building custom agents on the same harness. The current stable release is 1.9.6, and it is licensed under Apache-2.0.
What It Is
ConnectOnion exposes each external capability as an ordinary shell command, so any agent that can run a shell (Claude Code, Codex, Cursor or a custom agent) can use it. Commands cover identity and mailbox (co init, co email), mail and calendar (co gmail, co outlook, co gcalendar), chat apps (co whatsapp, co telegram, co discord, co slack, co sms), a persistent logged-in Chrome session (co browser), files (co gdrive, co syno), and remote agents, servers and schedules. Credentials are stored locally on the user's machine.
Why a CLI Instead of MCP
The docs argue that a CLI costs no context until used: bare co lists commands, and --help explains one command, including what it changes and a worked example. Each command ends by printing the next step to run. co audit scores any CLI's help pages for agent-friendliness, and a planned co mcp command is described as putting MCP servers behind the same interface.
co rem and Skills
co rem builds linked local Markdown pages about people, projects and decisions from mail and coding sessions, traceable to their sources and kept in ~/.co/rem. Scheduled upkeep currently requires macOS. co skills link links ConnectOnion's bundled skills into Claude Code and Codex.
Building Agents in Python
The Python SDK turns plain functions into tools and ships built-in tools (shell, file tools, browser automation, Gmail, Outlook, memory, todo list). It includes plugins such as approval flows, auto-compaction, subagents and a skills system, plus trust presets for multi-agent setups. Agents can be hosted with built-in frontend and backend, and co ai provides an AI assistant that writes ConnectOnion agent code. A macOS menu bar app is also offered.
Setup Path
A one-line install script installs co via uv and sets up an agent identity, or pip install connectonion with co init. Users then connect accounts with commands such as co auth google or co auth microsoft. Models from OpenAI, Anthropic, Gemini, Mistral, Groq, Grok, OpenRouter and local Ollama are supported.
Community Discussions
Be the first to start a conversation about ConnectOnion
Share your experience with ConnectOnion, ask questions, or help others learn from your insights.
Pricing
Open Source (Apache-2.0)
ConnectOnion agent CLI harness core, licensed under Apache License 2.0; free to use, modify and distribute. Model usage via own provider keys is an external cost.
- Apache-2.0 licensed core
- co CLI harness
- Python SDK
- Bring your own API keys or use managed keys
Managed Keys (gemini-3.7-flash)
Prepaid credits deducted per token at official API rates, no markup, credits never expire. Default model with intro pricing through 2026-12-31.
- Input $0.75 / 1M tokens, Output $3.75 / 1M tokens
- Intro pricing through 2026-12-31, then $1.50 / $7.50
- Purchase credits starting from $0.99
- Star the GitHub repo for $0.90 free credit
- New accounts get $5 of model credit
Managed Keys (gpt-5)
Managed OpenAI model at official API rates.
- Input $1.25 / 1M tokens
- Output $10.00 / 1M tokens
Managed Keys (claude-sonnet-4-5)
Managed Anthropic model at official API rates.
- Input $3.00 / 1M tokens
- Output $15.00 / 1M tokens
Capabilities
Key Features
- Single `co` CLI giving agents access to Gmail, Outlook, calendar, chat apps, browser and files
- Persistent logged-in Chrome session via co browser
- Agent identity with 0x address and hosted mailbox
- co rem local linked Markdown context memory
- Skills linking into Claude Code and Codex
- Python SDK with functions as tools and built-in tool ecosystem
- Approval, auto-compact, subagent and skills plugins
- Multi-agent trust presets
- co audit to score CLI help pages for agent usability
- co ai built-in AI coding assistant
- Scheduling, remote agent calls and server deployment
- Multi-provider model support including local Ollama
