Skip to main content
Build an agent, deploy it, and run it — all from your terminal.
orchagent has four types: prompt, tool, agent, and skill. The commands below work for all of them. See Agent Types for the differences.

Prerequisites

Set up an LLM API key in your environment:
API keys are separate from subscriptions. If you use Claude Pro/Max or ChatGPT Plus, you’ll need to set up API billing separately at console.anthropic.com or platform.openai.com.

Step 1: Install CLI & Sign Up

Go to orchagent.io and create a free account, then authenticate:

Verify Setup (Optional)

This checks your environment, config, and connectivity. If everything shows green checkmarks, you’re ready to go.

Step 2: Create an Agent

Initialize a new agent project:
Not sure what to build? Run orch init with no arguments in your terminal to launch an interactive wizard. It walks you through choosing a use case, language, and template — no flags needed.
This creates:
  • orchagent.json — agent manifest (type: "prompt" by default)
  • prompt.md — your prompt template
  • schema.json — input/output schemas
Edit prompt.md with your prompt and schema.json with your input/output definitions.
Building a tool type? Use orch init my-tool --type tool to scaffold a code runtime project. Add --language javascript for JavaScript with main.js and package.json, or use --template discord-js for a JavaScript Discord bot. See CLI Commands for all options.
Using Claude Code, Cursor, or another AI coding tool? Install the agent-builder skill for the complete platform reference:
Your AI assistant will know the exact sandbox contracts, boilerplate patterns, and environment details to build any agent type.
By default, orch init creates a prompt type (prompt + schema → single LLM call). Use --type tool for code runtime or --type agent for a managed LLM loop. See CLI Commands for all options.

Step 3: Test Locally

This runs the agent on your machine using your local LLM keys.
Tip: Use @file for complex inputs. Shell special characters (!, $, backticks) can break inline JSON. Put your input in a file instead:
This reads JSON from input.json — no escaping needed. Also supports @- for stdin.

Step 4: Publish

Your agent is now live and runnable by your team.

Step 5: Run It


Try a Deployed Agent

Want to see the platform in action first? Run one of our showcase agents:

Run Locally (No Account Needed)

Run on Server


Quick Reference

When to Use What

Running with Files

Many agents process files. Pass a file as an argument or use the --file flag:

Running with JSON

For direct LLM agents that accept JSON input:

Next Steps

API Reference

Full endpoint documentation

CLI Commands

All CLI commands explained

Agent Types

The four types — prompt, tool, agent, skill

Code Examples

Python, JavaScript, curl examples