API keys and tools
The Locai App is Locai Labs’ in-house agent harness. Switch the sidebar to API when you are wiring scripts, SDKs, coding agents, or existing tools to this appliance.
The appliance speaks the OpenAI and Anthropic API shapes: point the client at this box instead of a public provider. You do not need the Locai App for every call, but it is the easiest place to create a key and see that the model answers.
What works
Section titled “What works”Use whichever client you already have, as long as it talks OpenAI or Anthropic:
- Streaming replies and full (non-streaming) replies
- Requests with thinking turned on, and requests that return an answer only
- Official SDKs, HTTP clients, IDE plugins, and agents that already use those APIs
Give the tool this appliance’s URL, your API key, and a model that is loaded on this box. Names from another provider’s catalogue will not work here.
Dashboard
Section titled “Dashboard”Dashboard is your API home on this box: requests and tokens, active keys, the base URL, the active model, and a quick-start example. Create API key and Playground are the usual next steps.
Create a key
Section titled “Create a key”- Open API keys.
- Create a key (give it a name). Copy it once when it is shown. It cannot be recovered later.
- Store it in your password manager or your tool’s secret store, never in a shared chat.
The table shows prefix, created, last used, and whether the key is active. Revoke if it leaks, then create a replacement.
Administrators can also create and revoke keys in the Admin Console.
Playground
Section titled “Playground”Playground in the Locai App sends a test completion so you can see a reply and copy a snippet (cURL, Python, or JavaScript) before you wire a larger integration. It is for that check, not for pasting a live production key into a screenshot.
The Admin Console Playground can generate OpenAI and Anthropic snippets for the same appliance.
Analytics
Section titled “Analytics”Analytics (not “Activity” in this app) shows your requests and tokens over 7, 30, or 90 days. Team activity lists other people on this appliance if they have used the API. You cannot see their conversations from here.
What to give a tool
Section titled “What to give a tool”IT publishes the office-network URL (always available) and, if they enabled it, a company hostname. Use the values they give you. Do not guess ports or paths from old notes.
Dashboard and API keys in the Locai App, and API keys in the Admin Console, show the URLs that currently apply.