Getting Started
Install OrchaJS in an existing Node.js app or create a new project with create-orcha.
Prerequisites
Requires Node.js 20.12 or newer and an API key for the model provider of your choice.
Add Orcha to an existing project
npm install orchajs
npx orcha initRunning orcha init in the current directory:
- Creates
orcha/exampleAgent/index.json - Creates
orcha/exampleAgent/instructions.md - Creates
orcha/index.tswith Anthropic configured andexampleAgentregistered - Creates root-level
AGENTS.mdwith the complete Orcha development guide - Adds
.orcha/to.gitignore
Existing files are skipped, not overwritten.
Add Orcha as a skill
Give your coding agent the complete Orcha development guide:
npx skills add Amarsia/orchaCreate a new Node.js project
npx create-orcha@latest my-app-name
cd my-app-name
npm install
cp .env.example .envThe starter includes example agents and scripts for the local development playground, tests, and production compilation.
Add your provider credentials
Create a root-level .env file and add the credentials for the provider configured in orcha/index.ts.
Anthropic
ANTHROPIC_API_KEY=your-anthropic-keyOpenAI
OPENAI_API_KEY=your-openai-keyDeepSeek
DEEPSEEK_API_KEY=your-deepseek-keyGoogle Gemini
GOOGLE_API_KEY=your-google-ai-keyThe provider name in agent configuration is googlegenai.
Google Vertex AI
GOOGLE_CLOUD_PROJECT=your-project-id
GOOGLE_CLOUD_LOCATION=us-central1
GOOGLE_APPLICATION_CREDENTIALS=/absolute/path/to/service-account.jsonVertex AI can also use Application Default Credentials without
GOOGLE_APPLICATION_CREDENTIALS.
Amazon Bedrock
AWS_REGION=us-east-1
AWS_ACCESS_KEY_ID=your-access-key-id
AWS_SECRET_ACCESS_KEY=your-secret-access-key
AWS_SESSION_TOKEN=your-session-tokenBedrock uses the normal AWS credential chain when explicit credentials are omitted.