ConnectOnion AI Agent Framework

An open-source Python framework for production-ready AI agents that keeps simplicity: write prompts and tools, and the framework handles the rest.

Stars
★ 1.6k
Last updated
1d ago v1.9.5
FARS reviewed
Nov 08, 2026 +3 new
License
Apache-2.0
Primary language
Python

At a glance

How it runs
CLILibrary / SDKFramework
Works with
Universal · cross-platformOpenAI API · Claude API
Cost
Free software; you pay for model usage
Setup effort
Low · running in minutes
You'll need
Python 3.10+Shell / CLINetwork accessLocal filesystem
Typical use
A developer quickly adds tool support to an LLM by writing plain Python functions with type hints, which automatically become tools.
Not a fit if
  • Users who want a ready-made chatbot without writing code
  • Teams needing a mature deployment path (co deploy is incomplete)
Website
docs.connectonion.com ↗ set on GitHub
Maintenance
Commits in the last 30 dayslast commit 2026-12-01latest release v1.9.5 (2026-11-10)
Source review
62/100 · Some gaps

What does this agent do, and when should you use it?

ConnectOnion is a production-ready, open-source Python framework for building AI agents. It provides a complete runtime: a core Agent class orchestrates LLM calls and tool execution, and built-in hosting (host) allows agents to be discovered and called remotely. It supports multiple LLM providers (OpenAI, Anthropic, Gemini, and co/ managed keys) and features automatic function-to-tool conversion: any Python function with type hints becomes a usable tool. The framework includes 12 lifecycle hooks and a plugin system (e.g., re_act, auto_compact, subagents, ulw), plus a skills system for reusable workflows, compatible with Claude Code skills. Debugging is supported via the @xray decorator and interactive auto_debug sessions. The CLI commands (co create, co ai, co copy) facilitate project scaffolding and tool customization. Additionally, it has a multi-agent trust system (Fast Rules) for quick decisions before LLM calls and a built-in approval system to guard dangerous operations.

ConnectOnion executes end-to-end: the Agent class takes user input, invokes the LLM to generate tool calls, executes Python function tools, and logs behavior to JSON files. Tools can be simple functions, class instance methods, or built-in tools (e.g., bash, Shell, FileTools, BrowserAutomation, and integrations like Gmail, GDrive). The host() method starts an HTTP server and P2P relay, allowing other agents to discover and invoke it. The skills system automatically discovers SKILL.md files from .co/skills/ and .claude/skills/, and manages permissions. Plugins inject logic at lifecycle hooks (e.g., after_tools) — for example, re_act adds reflection after each tool call. The CLI command co create generates a project template, co ai starts an embedded AI coding assistant, and co copy copies tool source for modification. During debugging, the @xray decorator pauses execution at marked tools, letting developers inspect local variables, edit them, and continue.

  1. A developer quickly adds tool support to an LLM by writing plain Python functions with type hints, which automatically become tools.
  2. Using the built-in AI programmer (co ai) to generate working agent code that deeply understands the framework.
  3. Deploying an agent remotely: host() exposes it as an HTTP service that other agents can discover and invoke over the network.
  4. Debugging complex multi-tool workflows: @xray and auto_debug pause at tools, allow variable inspection, and test 'what-if' scenarios.
  5. A team wants to reuse Claude Code skills in another framework; ConnectOnion auto-loads them from .claude/skills/ without conversion.
  6. Security-conscious teams use the built-in approval system and strict trust presets to control agent permissions.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Install / run
  • pip install connectonion
Environment variables
OPENAI_API_KEY ANTHROPIC_API_KEY GEMINI_API_KEY
Runtime
Python 3.10+

How do you install or deploy this agent?

Install via pip: pip install connectonion

Requires Python 3.10+. Configure an LLM provider by setting environment variables (e.g., OPENAI_API_KEY, ANTHROPIC_API_KEY, GEMINI_API_KEY).

How do you use this agent?

Create an agent: from connectonion import Agent; agent = Agent(name="assistant"); agent.input("Hello")

Add tools as plain Python functions: def search(query): ...; agent = Agent(name="assistant", tools=[search]).

Host it: from connectonion import host; host(agent, trust="careful")

Use CLI: co create my-agent, then cd my-agent && python agent.py.
Debug: decorate a tool with @xray, then call agent.auto_debug().

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

What are this agent's strengths and limitations?

Pros
  • Simple API: plain functions become tools, reducing boilerplate.
  • Built-in production features: hosting, debugging, approval, skills system — no extra integration needed.
  • Multi-provider LLM support with co/ managed keys for quick start without API key setup.
  • Highly customizable via 12 lifecycle hooks and plugin system.
  • Multi-agent trust system makes decisions before LLM involvement, saving tokens.
Limitations
  • Project is still evolving; some features like co deploy are not complete.
  • Documentation is largely README-based; deeper guides for plugins and skills are limited.
  • Logs are stored in JSON format, which may not be human-readable without parsing.
  • Auto tool conversion relies on type hints and docstrings; sloppy code can lead to inaccurate tool descriptions.

How does this agent compare with similar options?

Compared to Claude Code, ConnectOnion offers similar built-in capabilities (auto_compact, subagents, ulw) but for any agent, and is compatible with Claude Code skills.

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
ConnectOnion AI Agent Framework This agent 62 · Some gaps CLIFree + model costs ★ 1.6k 1d ago Python OpenAI API · Claude API
Lagent Lightweight Agent Framework 46 · Major gaps Library / SDKFree + model costs ★ 2.3k 7mo ago Python OpenAI API
AG2: Open-Source AgentOS 75 · Good Library / SDKFree + model costs ★ 5.1k 1d ago Python OpenAI API
Agent Zero 59 · Major gaps Desktop appFree + model costs ★ 20k 12d ago Python Codex

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Some gaps
62/ 100 5-point scale 3.1 / 5
This review covers the source as of Nov 08, 2026. The project has shipped 3 stable release(s) since, which have not been re-reviewed. The score and verdict describe the reviewed version only. Recent releases ↓
Trust 14/29
Reliability 6/14
Adaptability 14/18
Convention 14/18
Effectiveness 10/13
Verifiability 4/8
Why each dimension lost points
Trust14 / 29 · 2.4/5

The code and docs expose broad account, browser, email, and remote-agent capabilities, so least privilege is only partly demonstrated. Write previews requiring --yes and careful trust configuration support ordinary confirmation, but the packet does not establish consistent confirmation for every external action. The README and ASR skill disclose upload destinations and provider choice; the Agent source identifies log and session paths, though data flows for unsampled features remain unknown. The identity skill says not to print tokens, and the CLI disables exception-local display to reduce credential leakage. Dependency security evidence covers only one optional Paramiko update audit, not the full dependency set. Many external effects are described incompletely and rollback evidence is limited. A private vulnerability-reporting path is documented, but publisher identity is unverified and attribution remains thin.

Reliability6 / 14 · 2.1/5

The README calls 1.9.2 stable while pyproject.toml declares 1.9.3rc61; AGENTS.md and CLAUDE.md also differ on structure and architecture, weakening consistency. Python requirements and installation paths are clear, but this sample cannot establish availability of all external services or optional dependencies. Recovery commands and the ASR skill's explicit no-fallback and resume behavior support useful failure handling, though coverage is incomplete.

Adaptability14 / 18 · 3.9/5

The packet targets CLI users and coding agents and covers email, calendars, browsers, files, chat, models, and agents, with local and multi-provider paths. Trust levels, command effect labels, and skill rules define some capability boundaries; skill descriptions generally identify specific tasks, though the overall product surface is broad and the packet is only a sample. Windows CLI handling and Python 3.11+ are documented, while rem scheduling is macOS-only, so environment fit is good but uneven.

Convention14 / 18 · 3.9/5

The README organizes commands by category and provides a clear start path and documentation links. It gives a one-line installer and pip alternative, but initialization effects and platform caveats are spread across docs. Version and architecture references conflict, reducing naming stability. Examples, demos, help pages, and diagnostics are extensive; ASR, rem, and security materials state some limitations. Apache-2.0 metadata matches the license file. Release processes, release notes, and security reporting assign some maintenance responsibility, but supported-version text is stale relative to the displayed version and the responsible publisher's identity is unknown.

Effectiveness10 / 13 · 3.8/5

On-demand help, composable command output, and named next steps make the CLI usable by agents; write previews improve actionability. Connecting common work tools and retaining local context provide clear utility. The breadth of integrations, account setup, and model costs add operational burden, and the packet provides no overall cost-benefit measurement.

Verifiability4 / 8 · 2.5/5

The README, skills, CLI entry point, and Agent source make installation, data flow, and some behavior traceable, but no evidence URLs are included. Cross-source corroboration is limited: docs disagree on versions and architecture, and some security acceptance claims are repository-authored. The identity skill distinguishes an unverified JWT claim from a remote account lookup, and some docs separate stated facts from limits; marketing claims are not consistently backed by independent evidence.

Risks and how to mitigate them
  • Version information differs across the README, pyproject.toml, and security policy. This assessment uses only the supplied files and does not execute or independently verify claims.
  • The product connects email, browser, file, and chat accounts; review each command's read, write, and upload destinations before configuration.
  • Some skills explicitly rely on cloud ASR or model processing; follow their source-selection instructions and check cost and data handling scope.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision 971c7991ed4d New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/connectonion.svg)](https://followagents.com/en/agents/connectonion)
<a href="https://followagents.com/en/agents/connectonion"><img src="https://followagents.com/badge/connectonion.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v1.9.7rc39 Pre-release
    Release notes excerpt
    What's Changed * The knowledge graph is 3D wherever 3D can run, with no 2D/3D switch (#3603) by @wu-changxing in https://github.com/openonion/connectonion/pull/3605 * A session page carries the agent's reply to each turn, desktop and phone turns are the owner's, and a program's repeated job is one page (#3604) by @wu-changxing in https://github.com/openonion/connectonion/pull/3607 * Keys opens on named services, says when a filter matches nothing, and scrolls with the page (#3451) by @wu-changxing in https://github.com/openonion/connectonion/pull/3606 …
    View on GitHub ↗
  2. v1.9.5
  3. v1.9.4

FAQ

Is ConnectOnion free to use?
The framework itself is open-source under Apache 2.0, but using LLM providers (e.g., OpenAI) may incur costs unless using co/ managed keys (which might be free).
How do I control dangerous operations?
The built-in approval system automatically triggers approval for dangerous operations (e.g., bash commands, file deletion), and the shell_approval plugin lets you customize.
What happens when an agent fails?
ConnectOnion provides an on_error lifecycle hook and logging to .co/logs/ to catch errors and aid debugging.
Can ConnectOnion be deployed on a local network?
Yes, using host() starts an HTTP server that allows other agents on the network to discover and invoke it.
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts