Connect a Coding Agent to Orcheo Studio¶
Use Claude Code, Cursor, or any CLI-capable coding agent to read and modify your Orcheo workflows directly from the terminal. The agent stays in sync with the workflow you have open in Studio — no copy-pasting required.
Prerequisites¶
- Orcheo CLI (
orcheo) installed and updated to the latest version. - An Orcheo account with API access.
Quick Start¶
1. Authenticate¶
This opens your browser for OAuth login and stores credentials locally.
Alternatively set the ORCHEO_SERVICE_TOKEN environment variable.
2. Start the browser context bridge¶
This starts a lightweight HTTP server on localhost:3333 that receives context
from your Studio browser tabs. Keep it running while you work.
Use --port to change the port:
3. Open Studio¶
Navigate to any workflow in Orcheo Studio. The browser tab automatically relays which page and workflow you're viewing to the local server.
4. Use your agent¶
Your coding agent can now run CLI commands to interact with the active workflow:
# See what you have open in Studio
orcheo context
# View workflow details
orcheo workflow show <workflow-id>
# Download the workflow script
orcheo workflow download <workflow-id>
# Download the script plus stored runnable config defaults
orcheo workflow download <workflow-id> --config-out workflow.config.json
# Upload an updated script
orcheo workflow upload --id <workflow-id> updated_script.py
# List all workflows
orcheo workflow list
Connect Claude Code to Orcheo Studio¶
- Start the browser context bridge:
orcheo browser-aware - Open a workflow in Studio.
- In your terminal, ask Claude Code: "What workflow am I looking at?"
- Claude Code runs
orcheo contextto read the active workflow, thenorcheo workflow show <id>ororcheo workflow download <id>to fetch the script. - Ask Claude Code to make changes — it will edit the script and run
orcheo workflow upload --id <id> <file>to push the update. - Refresh Studio to see the updated workflow graph.
Connect Cursor to Orcheo Studio¶
- Start the browser context bridge:
orcheo browser-aware - Open a workflow in Studio.
- In Cursor's terminal, run
orcheo contextto see the active workflow. - Use
orcheo workflow download <id>to get the script, edit it in Cursor, thenorcheo workflow upload --id <id> <file>to push changes.
Multi-tab Support¶
If you have multiple Studio tabs open, orcheo context returns the most
recently focused tab's context. Use orcheo context sessions to see all
active tabs:
Troubleshooting¶
| Issue | Solution |
|---|---|
orcheo context says "Could not connect" |
Make sure orcheo browser-aware is running in another terminal. |
orcheo context says "No active Studio session" |
Open Orcheo Studio in your browser. The context relay only works when a Studio tab is open. |
| Context is stale | Check that the Studio tab is not minimized or suspended. The heartbeat pauses when the tab is hidden. |
| Authentication errors on workflow commands | Run orcheo auth login to refresh your credentials. |