Build, train, and deploy AI agents programmatically. Every agent gets its own API key. RAG training via CLI. Multi-agent workflows via API. One-shot entire projects with the CEO Agent. And it's all on npm.
npm install @ceo-ai/sdk
Every agent on CEO.ai has its own unique API key. Create a client instance, send prompts, and get RAG-powered responses. Zero external dependencies — uses only Node.js built-in modules.
const { CeoAI } = require('@ceo-ai/sdk');
const ceo = new CeoAI({
apiKey: 'sk_live_your_api_key_here',
// endpoint, timeout, pollInterval, pollTimeout — all optional
});
// Send a prompt and wait for the result
const { response, metadata } = await ceo.promptAndWait(
'What was our Q4 revenue?'
);
console.log(response);
// => { answer: "Q4 revenue was $12.5M, representing a 15% increase..." }
console.log(metadata);
// => { agentId: '...', agentName: 'Financial Analyst', model: 'claude-sonnet-4-5', estimatedCredits: 10 }
// First message
const first = await ceo.promptAndWait('What was our Q4 revenue?');
// Follow-up with context
const second = await ceo.promptAndWait('How does that compare to Q3?', {
conversationHistory: [
{ role: 'user', content: 'What was our Q4 revenue?' },
{ role: 'assistant', content: JSON.stringify(first.response) }
]
});
@ceo-ai/cliSend prompts, manage conversations, add RAG knowledge, and configure everything from your terminal.
# Install globally
npm install -g @ceo-ai/cli
# Configure your API key
ceo configure --key sk_live_your_api_key_here
# Send a prompt and wait for the result
ceo prompt "What was our Q4 revenue?" --poll
# Start a conversation (persists to a local JSON file)
ceo chat "Analyze our marketing spend" -c marketing.json
# Continue the conversation with full history context
ceo chat "Break it down by channel" -c marketing.json
# List all conversations
ceo conversations
ceo prompt flags| Flag | Description |
|---|---|
--poll | Wait for results instead of returning presigned URL |
--no-rag | Disable RAG mode (RAG enabled by default) |
-o, --output <file> | Write results to a file |
--json | Raw JSON output (useful for piping) |
-k, --key <apiKey> | Override configured API key for a single request |
--poll-interval <ms> | Polling frequency (default: 2000ms) |
--poll-timeout <ms> | Max wait time (default: 120000ms) |
Personalize the CLI command to anything you want:
ceo configure --name jules
ceo alias:setup
# Follow the instructions, then:
jules chat "What's the status of our project?"
Forget clunky web interfaces. The CEO.ai CLI lets you manage RAG knowledge from your terminal. Add single files or ingest entire directories.
# Add a single file to an agent's knowledge
ceo addRag ./specs/api-patterns.md
# Add an entire directory of files
ceo addRagDirectory ./documentation/
Supports: .txt, .md, .pdf, .json, .yaml, .py, .js, .ts, and more. The CLI handles parsing and indexing.
npm install @ceo-ai/sdk
The SDK wraps every API endpoint with typed methods and handles authentication, error handling, and retry logic. Zero external dependencies. TypeScript support included. ESM and CJS exports. Node.js 16+.
Train an agent on domain knowledge, give it an API key, embed it in your product. AI in your SaaS without ML infrastructure.
Build agents that power WhatsApp, Telegram, or Slack bots — with real business intelligence via RAG, not generic chatbot responses.
Use the CEO Agent to one-shot full-stack internal apps. Frontend, backend, database, deployment configs. Committed to GitHub.
Chain agents into workflows that connect your existing platforms via API. Custom integration logic powered by AI.
Create specialized AI agents, expose them via API, sell access. Or build client-facing AI solutions. The Agent API is your infrastructure.
The SDK integrates cleanly with Express, Fastify, or any Node.js server. Async or sync endpoints, typed error handling.
If you're the developer (or the technical co-founder) on a team where the CEO is driving AI adoption — here's what CEO.ai means for you:
Everything commits to GitHub. You can see every file, every commit, every agent's contribution. The CEO Agent doesn't replace your judgment — it gives you a massive head start.
CLI, SDK, typed API, npm package. This isn't a no-code tool pretending to be developer-friendly. The programmatic access is real and comprehensive.
Ingest your entire codebase documentation, your API specs, your infrastructure patterns — via ceo addRagDirectory ./docs/. Now the architect agents actually know your stack.
Boilerplate. Migrations. Terraform configs. CRUD endpoints. Lambda functions. Let the agents handle the boring 80%. You focus on the interesting 20%.
This isn't a black box. You rate each agent's work, and the system learns. Over time, the agents produce code that increasingly matches your standards and preferences.
| Full API Documentation | docs.ceo.ai |
| CLI Reference | /developers/cli |
| SDK Reference | /developers/sdk |
| npm Package | @ceo-ai/sdk |
| Quickstart Guide | Getting Started in 5 Minutes |
| API Status | status.ceo.ai |
npm install @ceo-ai/sdk
npm install -g @ceo-ai/cli
Every plan includes Agent API access. CLI and SDK available on all plans. CEO Agent API available on Enterprise.