Create a key
Keys live in the teamโs settings on oxen.ai, under Integrations, then API keys. The page is also athttps://www.oxen.ai/YOUR_TEAM/settings/api-keys. Every team member can see the list. Only team admins can create or revoke keys.

- Name should say what the key is for, because commits the key makes carry the author
<key name> (<team name>)and the emailnoreply@oxen.ai. - Role is Viewer or Editor. Roles lists what each can do.
- Expiration is 3 days, 7 days, 30 days (the default), 1 year, Never, or a custom date. The key expires at the end of the chosen day.
oxen_sk_. Copy it before you close the dialog, because from then on the list shows only its last four characters. A lost key canโt be recovered, so revoke it and make another.
Use a key
Send a team key the same way as a personal key. These examples read it from theOXEN_API_KEY environment variable.
~/.config/oxen/auth_config.toml. Setting a team key there replaces your personal key on that machine.
Roles
A viewer key is read only. It can clone and pull the teamโs repositories, read data frames and run SQL queries on them, list models (GET /api/ai/models), and see the teamโs API keys and generation history. The writes and generations an editor key can make get a 403 from a viewer key.
An editor key can also do these things:
- Run chat completions (
POST /api/ai/chat/completions) and queued image, video, and audio generations (POST /api/ai/queue, thenGET /api/ai/queue/<id>for the result), billed to the team. - Push to the teamโs repositories with the CLI.
- Create repositories in the team, upload files, and work in workspaces.
Expire and revoke
The list shows each keyโs name, role, creator, creation date, last use, and expiration. Revoked and expired keys move to their own table below the active ones. A team admin revokes a key from its row in the list. New requests with that key get a401 right away, and a generation still waiting in the queue fails when its turn comes. Revoking canโt be undone.
Limits
Team keys canโt read the teamโs credit balance, cancel or retry a generation, or manage keys and team members. They also canโt run plain language queries on data frames (text to SQL), which need a person signed in. A route that hasnโt been opened to team keys refuses them with a401 or a 403.