OpenLegion docs
OpenLegion puts an AI agent inside your product. Each of your customers gets their own agent, made from a template you write as code. The agent works through your own functions: you write them as tools, and OpenLegion calls them for the right customer, signed. Your customers only ever see your product.
- Quickstart: an agent in your Next.js app, calling one of your functions, in about 10 minutes, in test mode.
- How it works: templates, workspaces, agents, runs and actions, and who holds what.
- Give your customers an assistant that works in your product: from the quickstart to an assistant your customers use.
- Topic guides: Your functions as tools, Approvals and roles, Webhooks, Your customers' own accounts, Let your users bring their own model key, The chat: what streams and what reloads, Credits, budgets and limits and Keys, your team and going live.
- Add OpenLegion with a coding agent: a prompt for Claude Code, Cursor or Codex.
- API reference, CLI reference and Errors: every error code, what it means and what to do next.
- Template spec: the rules for each field of a template version.
For coding agents: /llms.txt lists these pages, and /llms-full.txt is all of them in one file.