Skip to main content

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

PyPI Python Platform


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.

Desktop app (macOS)

A native macOS app (SwiftUI + WKWebView) lives in macos/ — the same cockpit in a real window with the traffic-light chrome and app icon. Build and run it from Xcode (macos/ConnectOnionStudio/); a signed .dmg for one-click install is on the way.

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 Encodes connectonion://add?address&name&endpoint — one scan fills all three iOS "Add agent" fields (direct LAN endpoint, bypasses the relay)
📜 Logs Master–detail cockpit: per-agent live console (this run only), stat tiles, follow / errors-only, reveal-in-Finder
🩺 Copy for Claude Paste-ready markdown diagnostics bundle, one click
🗑️ Delete Two-step confirm, then a permanent delete — identity, keys, and logs are removed for good

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 (stops the agent, then permanently deletes it)
GET /api/agents/{slug}/qr.svg SVG QR of the connectonion://add deep link (address · name · endpoint)
POST /api/agents/{slug}/reveal-logs Opens the agent's runs/ folder in the OS file browser (local)
GET /api/agents/{slug}/diagnostics Markdown bundle
GET /api/setup/status Doctor checks
GET /api/setup/update PyPI update check — {current, latest, update_available}
WS /ws/status Status frames (each change + every 5 s)
WS /ws/agents/{slug}/logs {"source": "stdout", "line": …} — the current run, from its first line
Storage & internals
~/.co-studio/agents/<slug>/   meta.json · agent.py · .env · .co/ · runs/<timestamp>.log
  • One stdout log per run under runs/; the live console (and diagnostics) read only the current run.
  • Agent ports 8000–8099, allocated by socket probe (busy ports skipped, re-probed at start).
  • agent.py is standalone — eject it anywhere and python agent.py still 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:9900 only.
  • 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

connectonion_studio-0.1.5.tar.gz (235.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

connectonion_studio-0.1.5-py3-none-any.whl (246.5 kB view details)

Uploaded Python 3

File details

Details for the file connectonion_studio-0.1.5.tar.gz.

File metadata

  • Download URL: connectonion_studio-0.1.5.tar.gz
  • Upload date:
  • Size: 235.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for connectonion_studio-0.1.5.tar.gz
Algorithm Hash digest
SHA256 afc4208c36f51c50863c9f55e8f4566d977105a0936c15acd13442a9694c1e47
MD5 98780aecc9f0c08db96cd0c41dd88bcd
BLAKE2b-256 e6b7a80e864b7ed155474cdb4e6de0d8c631d99c4e57aca8d2313315c42c2293

See more details on using hashes here.

File details

Details for the file connectonion_studio-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for connectonion_studio-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a85c954dc9d50dd539b5c28c2a3cbc85471b236ab4cf3ef8bbf4498f44c0bd85
MD5 35ea5e809865fd57ff2b7a323c1b3b40
BLAKE2b-256 c784984791593b2de038270cf5aeeb42b8e90c4879a722fd717846bb7e99e01f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page