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:

Get started

I want to…Go to
Set up a new machineInstall
Find or rotate my API keyAPI keys
Run an agent from my own codeAgents API quickstart
Fix a 401, 403, 402 or 429 errorError reference
Understand which models I can useTiers
Check what I have spentMy Usage
Use LatentCode in a team or another organizationTeams
Run an agent in the cloudAgents API quickstart
Remove LatentStack from a machineUninstall

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 | bash

Then 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.