ConnectOnion Studio — local test cockpit for ConnectOnion agents: create, run, QR, live logs, Copy-for-Claude diagnostics.
Project description
ConnectOnion Studio
A local test cockpit for ConnectOnion agents.
Click toolkits to build an agent · scan its QR from the iOS app · watch live logs · copy a one-click diagnostics bundle straight into Claude.
Install
pipx install connectonion-studio # or: pip install connectonion-studio
co-studio # opens http://127.0.0.1:9900
That's it. The first launch auto-creates your identity and activates your managed model key (needs internet — it's your own key, one per user). Offline on first run? Just run co auth once you're back online.
What it does
| 🧩 Create | Form: name · model · toolkit checkboxes → identity + QR ready instantly |
| ▶️ Run | One process per agent, health-polled every 5 s, live state over WebSocket |
| 📱 QR | Bare 0x address — scan it in the iOS "Add agent" flow |
| 📜 Logs | Live stdout + framework-logger streams, per agent |
| 🩺 Copy for Claude | Paste-ready markdown diagnostics bundle, one click |
| 🗑️ Delete | Moves to ~/.co-studio/trash/ — identity keys are never hard-deleted |
Toolkits: utility · web · files · shell (approval-gated) · image
Requirements
Python 3.11+ · macOS, Linux, or Windows (WSL recommended)
API reference
| Method | Path | Returns |
|---|---|---|
GET |
/api/agents |
{"agents": [AgentSummary]} |
POST |
/api/agents |
AgentDetail — body {name, model, toolkits, trust} |
GET |
/api/agents/{slug} |
AgentDetail |
POST |
/api/agents/{slug}/start · /stop · /restart |
{"state": …} |
POST |
/api/agents/{slug}/rename |
AgentSummary — body {name} |
DELETE |
/api/agents/{slug} |
204 (moved to trash) |
GET |
/api/agents/{slug}/qr.svg |
SVG QR |
GET |
/api/agents/{slug}/diagnostics |
Markdown bundle |
GET |
/api/setup/status |
Doctor checks |
WS |
/ws/status |
Status frames (each change + every 5 s) |
WS |
/ws/agents/{slug}/logs |
{"source": "stdout" | "logger", "line": …} |
Storage & internals
~/.co-studio/agents/<slug>/ meta.json · agent.py · .env · .co/ · studio-stdout.log
~/.co-studio/trash/ deleted agents (timestamped)
- Agent ports
8000–8099, allocated by socket probe (busy ports skipped, re-probed at start). agent.pyis standalone — eject it anywhere andpython agent.pystill works (the announce IP-trim patch is inlined).
Development (from source)
git clone https://github.com/EvanYifanYang/connectonion-studio && cd connectonion-studio
./install.sh
.venv/bin/co-studio
| Env | Effect |
|---|---|
CONNECTONION_PATH=~/repo/connectonion ./install.sh |
Install the framework from a local checkout instead of PyPI |
PYTHON=python3.12 ./install.sh |
Pick the interpreter |
Security
- The manager binds
127.0.0.1:9900only. - Agent ports are unauthenticated and exposed on your LAN by
host()— that is how the phone connects. Don't run on hostile networks.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file connectonion_studio-0.1.1.tar.gz.
File metadata
- Download URL: connectonion_studio-0.1.1.tar.gz
- Upload date:
- Size: 216.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8947d357f4fd0ed0eb2465889085b3f7aeb70cf38b18a06f2ebb66752030fde4
|
|
| MD5 |
6cfc560c5e5c102754546f9eac70a56d
|
|
| BLAKE2b-256 |
1b8404eab8e69f7cfca18b90ce617b5c3ef04490a0647e5323d9ef4ca4beb83d
|
File details
Details for the file connectonion_studio-0.1.1-py3-none-any.whl.
File metadata
- Download URL: connectonion_studio-0.1.1-py3-none-any.whl
- Upload date:
- Size: 226.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
139e9d6ca020b6441b87c4b52d8906aba863c045a40f64f2428d29e92f61d664
|
|
| MD5 |
83fb0ced747d46fc3b5bd31fe654c5db
|
|
| BLAKE2b-256 |
4ebddf66a778675b3335750803108d1d10612f4e0c2763871700d8fb94c62dd5
|