Quick Comparison: Cloud vs Local
Production apps call the HTTP API directly from code. The CLI is useful for testing.
Local download is on by default. New agents and skills are locally downloadable unless authors explicitly disable it using the
--no-local-download flag at publish time or the toggle in the web UI.Cloud Execution (orch run)
Run an agent on orchagent’s servers. This is the default mode.
What Happens
- CLI sends request to gateway (
api.orchagent.io) - Gateway authenticates your API key
- Gateway spins up an E2B sandbox (ephemeral)
- Agent code runs with input via stdin
- Agent runs with your stored LLM keys
- Response (stdout) returned through gateway
When to Use
- Production - Reliable, managed infrastructure
- Orchestration - Agents calling other agents
- No local setup - Run without installing dependencies
- Higher reliability - Auto-scaling, health checks
Requirements
- orchagent account (free)
- API key from dashboard
- LLM key stored in account
Local Execution (orch run --local)
Download and run an agent on your machine.
What Happens
- CLI downloads agent code from registry
- Agent installs on your machine
- Agent runs locally
- Agent calls LLM using YOUR environment keys
- Results returned to terminal
When to Use
- Development - Test agents before deploying
- Privacy - Keep data on your machine
- No account - Try agents without signing up
- Debugging - See full execution locally
Requirements
- Agent must have
source_urlorpip_packagein manifest - Agent must have
allow_local_downloadenabled by its author - LLM API key in environment variable
- For orchestrators: dependencies must also be downloadable
Architecture Diagrams
Local Execution
Server Execution
Handling Dependencies
Local with Dependencies
Orchestrator agents have dependencies. When running locally:Server with Dependencies
On the server, dependencies are handled automatically. The gateway routes calls between agents.Installing Agents as Sub-Agents (orch install)
A third option: export agents as configuration files for AI coding tools like Claude Code or Cursor.
- CLI downloads agent metadata from registry
- Converts to target format (Claude Code, Cursor, AGENTS.md)
- Writes configuration file to AI tool directory
install:
- You want Claude Code or Cursor to delegate tasks to specialized agents
- You want sub-agents available across all your projects
- You’re building a team workflow with shared agents
run:
runexecutes the agent immediately and returns resultsinstallcreates files that your AI tool reads later
Service Deployment (orch service deploy)
A fourth mode: deploy agents as always-on services (run_mode: "always_on") that run continuously on Cloud Run.
How It Differs
See Always-On Services for full documentation.
CLI Commands Summary
Choosing the Right Mode
Use Local (--local or orch dev) When
- You want to keep data on your machine
- You’re developing or debugging an agent (use
orch devfor hot-reload) - You want to try an agent without an account
- The agent doesn’t have complex dependencies
- The agent author has enabled
allow_local_download
Use Cloud (Default) When
- You’re building production integrations
- The agent has dependencies (orchestrator)
- You want managed infrastructure
- You need usage tracking and logs
- The agent does not allow local download
- You want usage tracking and logs
Development Server (orch dev)
For active development, use orch dev to start a local HTTP server with hot-reload:
http://localhost:4900 that:
- Accepts POST requests with JSON input and runs your agent locally
- Watches for file changes and reloads automatically
- Works with all agent types (prompt, tool, agent)