Get started
LatentStack documentation
LatentStack gives your organization AI tools for coding and everyday work, all going through one gateway that your organization controls.
What LatentStack is
At its center is a gateway you run yourself. It routes requests to the model providers your administrator configures, enforces each organization's policy (which models people can use, rate limits, budgets and guardrails), and meters the tokens and cost of every request. Developers' machines never talk to a model provider directly.
On top of the gateway, LatentStack gives you:
LatentCode
LatentWork
Admin Console
Agents API
Quickstart
Get started
Popular tasks
| I want to… | Go to |
|---|---|
| Set up a new machine | Install |
| Find or rotate my API key | API keys |
| Run an agent from my own code | Agents API quickstart |
| Fix a 401, 403, 402 or 429 error | Error reference |
| Understand which models I can use | Tiers |
| Check what I have spent | My Usage |
| Use LatentCode in a team or another organization | Teams |
| Run an agent in the cloud | Agents API quickstart |
| Remove LatentStack from a machine | Uninstall |
How the pieces fit together
LatentCode LatentWork Agents API
│ │ │
└───────────────┼───────────────┘
│ Authorization: Bearer ls-…
▼
LatentStack gateway (your server)
key → organization, team, tier
guardrails
allowed models, rate limits, budgets, credits
usage and cost metering
│
▼
model providers (Anthropic, OpenAI, Bedrock, …)- You have one account and one personal API key, starting with
ls-. Every product uses it. - The key tells the gateway who you are. Your organization and team decide your tier, which in turn decides the models you can use and your limits.
- The gateway sends each request to the provider that serves the model, with credentials your administrator set up in the console. You never handle provider keys.
- Every request is metered. You see your usage on My Usage; admins see the organization's in the console.
Install
One command installs LatentCode, LatentWork and the editor extension, all from this server:
curl -fsSL https://latentstack.dev/install.sh | bashThen follow the Quickstart, or see Install for options.
Get help
Troubleshooting lists the errors you can get from the gateway, LatentCode, LatentWork and the console, with their causes and fixes.