Skip to content
API Blog

Getting Started

Deploy sandboxed, persistent AI agents to your infrastructure — one isolated agent per user and channel, from a single deploy.

Lobu boots as a single Node process. Bring your own Postgres with pgvector (managed instance or local — brew services start postgresql works for dev).

Terminal window
# 1. Scaffold
npx @lobu/cli@latest init my-agent
cd my-agent
# 2. Set DATABASE_URL in .env, then boot
npx @lobu/cli@latest run
# 3. Chat with your agent (in another terminal)
npx @lobu/cli@latest chat "Hello, what can you do?"
# 4. Run evals to measure quality
npx @lobu/cli@latest eval
my-agent/
├── lobu.toml # agents, providers, skills, network
├── .env # secrets (API keys, DATABASE_URL)
├── AGENTS.md # briefing for coding agents
├── README.md
├── TESTING.md
├── agents/my-agent/
│ ├── IDENTITY.md # who the agent is
│ ├── SOUL.md # instructions, rules, workflows
│ ├── USER.md # per-user context and preferences
│ ├── skills/ # skills scoped to this agent only
│ └── evals/
│ └── ping.yaml # test cases for agent quality
├── skills/ # skills shared across all agents
├── models/ # Owletto entity schemas (if memory enabled)
└── data/ # Owletto seed entities and relationships
PathDocs
lobu.tomllobu.toml reference
agents/*/IDENTITY.md, SOUL.md, USER.mdAgent Workspace
agents/*/skills/, skills/SKILL.md reference, Skills
agents/*/evals/Evaluations
models/, data/Memory
.envCLI reference

The fastest way to build your agent is to point a coding agent at the generated project. Open Claude Code, Codex, OpenCode, or any coding agent and paste this prompt:

I am building a Lobu agent in this repository.
Please:
1. Read AGENTS.md, lobu.toml, and agents/my-agent/{IDENTITY,SOUL,USER}.md first.
2. Help me shape the agent behavior by editing those files directly.
3. Use Lobu skills when they make sense: https://lobu.ai/getting-started/skills/
4. Suggest any provider, skill, or connection changes needed in lobu.toml.
5. Keep the project runnable with `npx @lobu/cli@latest run`.
Explain what you change and why.
FileWhat to ask for
agents/my-agent/IDENTITY.md”Make this a customer support agent for Acme Corp”
agents/my-agent/SOUL.md”Add rules: never share pricing, always confirm before cancellations”
agents/my-agent/USER.md”Set timezone to US/Pacific, company plan is Enterprise”
lobu.toml”Add GitHub and Linear skills, allow github.com and api.linear.app”
agents/my-agent/evals/”Write an eval that tests the agent follows the cancellation rule”
agents/my-agent/skills/”Create a custom skill for our internal API”

After each change, test with:

Terminal window
npx @lobu/cli@latest chat "Hello, can you cancel my subscription?"
npx @lobu/cli@latest eval

Lobu supports two configuration approaches depending on how you deploy:

After init, your project is configured through lobu.toml. Use the CLI to add providers and install starter skills at any time:

Terminal window
# Browse and add providers
npx @lobu/cli@latest providers list
npx @lobu/cli@latest providers add gemini # prompts for API key, updates lobu.toml + .env
# Install the Lobu starter skill into skills/lobu
npx @lobu/cli@latest skills list
npx @lobu/cli@latest skills add lobu
# Install the bundled Lobu starter skill
npx @lobu/cli@latest skills add lobu
# Manage secrets
npx @lobu/cli@latest secrets set GEMINI_API_KEY AIza...
npx @lobu/cli@latest secrets list
# Validate and run
npx @lobu/cli@latest validate
npx @lobu/cli@latest run

See the CLI Reference for all available commands.

The CLI exposes an admin page at /agents and a REST API at /api/docs for runtime management — adding providers, connections, and viewing agent status.