Orkhub CLI
Scaffold, run, test, and publish AI agents from your terminal. The CLI is a thin client over the Orkhub API — your code lives locally (edit it, commit it), and runs on Orkhub’s cloud sandboxes, streaming the live trace back to your terminal.
Installation
Install globally so orkhub is on your PATH:
npm install -g orkhub
orkhub versionWorking from the monorepo? Link it locally instead:
cd cli
npm run sync-sdk # bundle the Python SDK into the package
npm link # puts 'orkhub' on your PATH
orkhub version
# orkhub 0.1.0Or run it directly without linking: node cli/bin/orkhub.mjs <command>.
Quickstart
1. Create an API key
Open Developers → API keys, create a key, and copy the
ork_…value (shown once).2. Log in
orkhub login # Orkhub URL [https://orkhub.vercel.app]: # API key: ork_…3. Scaffold, push, run
orkhub init my-agent cd my-agent orkhub push # upload to Orkhub orkhub run -m "hello" # run it on Orkhub, trace streams here4. Ship it
orkhub test # run your evals orkhub publish # validate → test → snapshot → marketplace
Authentication
The CLI uses an API key — no OAuth. It’s stored in ~/.orkhub/config.json and sent only to the Orkhub URL you target. For CI, set ORKHUB_API_KEY andORKHUB_API_URL in the environment (they override the saved config), or pass --key / --url to login.
# CI example
export ORKHUB_API_KEY=ork_…
export ORKHUB_API_URL=https://orkhub.vercel.app
orkhub push && orkhub publishCommands
orkhub.yaml
The manifest at the root of every agent. name is the slug; the prompt, model, tools, limits, and marketplace metadata all live here. agent.py wires tools to Agent.from_manifest().
schema_version: "1.0"
name: company-research
display_name: "Company Research Agent"
description: "Input a company URL — get a one-page brief."
runtime: python
runtime_version: "3.12"
model:
profile: balanced # speed | balanced | quality
system_prompt: |
You research a company from its URL and produce a concise brief.
tools:
- builtin: web_fetch
deploy:
- http
limits:
max_tokens_per_run: 50000
max_tool_calls_per_run: 20
max_runtime_seconds: 120
max_cost_usd_per_run: 1.00
marketplace:
category: data
pricing:
starter: { monthly_usd: 0, tasks_included: 50 }
tags: [research, sales]
Config file
Stored at ~/.orkhub/config.json:
{
"apiUrl": "https://orkhub.vercel.app",
"apiKey": "ork_…"
}Prefer no code?
The GUI builder covers the same workflow in a browser.