Models and billing
LibraOS Engine is free locally. Bring your own model credentials: coding-tool subscriptions and model usage are billed separately. Cloud Workers (beta) are optional. The Personal plan (US$9 per month) includes 3,600 Cloud Worker minutes per month. Jobs use included minutes first, then cost US$0.0025 per active minute on a 2 vCPU + 4 GiB machine. Model use is billed separately to your LibraOS credits by default, or through your own provider keys or Claude subscription. See Costs and budget holds.
LibraOS Engine brings no model access of its own. Claude Code and Codex call their models as each is configured, and Chat calls the gateway in LibraOS Engine's gateway settings. You can:
- keep your own Claude or ChatGPT sign-in, or your own provider key, billed by that provider; or
- point Chat and either client at the LibraOS model API with a model API key from the Console's API keys page. Both draw from your credits balance at the prices on Credits & billing. See Credits and billing.
Store the key
Save the lk_… key alone in a file only you can read:
mkdir -p ~/.config/agentd
install -m 600 /dev/null ~/.config/agentd/libraos.key
# paste the key into the file with your editor; do not put it in shell history
libraos-core init --model-key ~/.config/agentd/libraos.key writes the gateway
and dispatch settings below for you; see Connect.
LibraOS Engine reads a key file at each call and never logs the key or prints it. It
keeps no copy, with one exception: libraos-core runtime up copies the gateway's
key into ~/.local/share/agentd/.secrets/runtime/libraos.env, the Docker env
file of the local Runtime, readable only by you. After you rotate the key,
run libraos-core runtime up again so the Runtime gets the new one.
Chat through LibraOS
Chat needs these settings even when Claude Code and Codex use your own
sign-in. Add them to LibraOS Engine's config file, ~/.local/share/agentd/config.toml,
if libraos-core init --model-key did not:
[gateway] # the dashboard's Chat
url = "https://api.libraos.com/v1"
key_file = "~/.config/agentd/libraos.key"
Name models in a role's model field as on the price list, such as
anthropic/claude-opus-5-5 or openai/gpt-6.1-sol.
Workers through LibraOS
Add the dispatch settings to the same file:
[dispatch] # Claude and Codex workers
claude_base_url = "https://api.libraos.com"
claude_key_file = "~/.config/agentd/libraos.key"
codex_base_url = "https://api.libraos.com/v1"
codex_key_file = "~/.config/agentd/libraos.key"
- Claude workers send their model requests to the Claude base URL, which
must serve
/v1/messages. With a Claude key file, the worker's settings file sets Claude Code'sapiKeyHelpertolibraos-core worker-key, which reads the key file when Claude Code needs the key. The key is sent only in request headers; it is not written to the settings file or put in the environment of the worker's commands. If the helper fails, the gateway gets an empty credential, not your own Claude login. - Codex workers with a Codex base URL run with a model provider of LibraOS Engine's own on the Responses API, and need a Codex key file with it. The key is never on a command line, but it is in the worker's environment, so assume the worker's commands can read it.
- Key files take an absolute path or one starting with
~/. A key file must hold the key alone on one line, belong to you and have mode 600. If the dispatch settings hide paths from workers (hide), a key file under a hidden path is refused. Key files are read each time a worker starts, so a rotated key needs no restart. - Transport: with a key file, the base URL must be HTTPS, or plain HTTP only to this machine (127.0.0.0/8, ::1 or localhost).
- Settings files: a Claude worker's settings file holds no key, has mode 600, and is removed 7 days after it was written, once the worker's result has closed.
Workers can read the key file, since they run as you: give them a key you
would let them use. libraos-core doctor names the gateway each worker uses and
fails on a key file they could not use, with the fix. That check covers
dispatched workers only: libraos-core score and libraos-core bench start the client
with your own login.
Costs
A worker's result card shows its time and cost. LibraOS Engine has no price table of
its own, so without prices the card shows dollars unknown for the model. The
Console's Credits & billing page shows what the workers actually used.
A budget in time, such as 30m, needs nothing more. A budget in dollars, such
as $5, needs a price for the worker's model, in USD per million tokens, in
the config file. Quote the model name:
[budget.prices."anthropic/claude-opus-5-5"]
input = 5
output = 25
cache_read = 0.5
cache_write = 6.25
The numbers above are an example only: copy the rates from the price list you
pay. An entry may be a model name or the start of one. The same from a
terminal, with AGENTD_USER exported as an owner:
libraos-core config set budget.prices.anthropic/claude-opus-5-5 '{"input":5,"output":25,"cache_read":0.5,"cache_write":6.25}'
The dashboard's Usage page names the models that have no price.
Workers dispatched from a shell get that shell's environment. An
ANTHROPIC_API_KEY in your shell reaches workers you start from it, but not
workers the background service starts. Use the settings above when every
worker should go through LibraOS.