Getting started
Authentication
How project credentials work: creating a credential, connecting it with xorox init, and revoking or rotating it.
Project credentials
A coding agent connects to a project using a project credential — not your XOROX account login. Create one from the project's Credentials tab in the dashboard.
Creating a credential gives you two values:
| Value | Where it comes from |
|---|---|
XOROX_PROJECT_ID | The project's id, visible any time in its Credentials tab. |
XOROX_TOKEN | Generated once, when the credential is created. |
XOROX_TOKEN is shown exactly once, at creation time. There is no way to view it again later — if you lose it, create a new credential.
Connecting a credential
Run xorox init inside the project you're coding in. It asks for the project ID and token (the token is typed hidden), checks them with XOROX, and only then saves anything. See Installation.
- The token is stored in your user-level XOROX configuration with owner-only permissions. It is never written into the repository, so there's nothing credential-related to commit.
- The project itself only records which XOROX project the directory belongs to, and that link only applies on machines where you've run
xorox init— a cloned repository can't pick up someone else's credential. - For scripts and CI, set
XOROX_PROJECT_IDandXOROX_TOKENas environment variables instead.xorox initcan also read the token fromXOROX_TOKENor from standard input (--token-stdin); there is deliberately no--tokenoption, since a token on the command line ends up in shell history. - Projects set up with an earlier XOROX release (0.1.x) keep working: a
.envfile with these two values is still read, andxorox initoffers to migrate the credential to user-level storage (pass--yesto accept without asking). It never edits.env, so you can delete those lines afterwards.
Keep XOROX_TOKEN private. If you use a .env file, don't commit it — add it to .gitignore.
How it's used
The hooks and the MCP server your coding agent runs are the same xorox command. Each time, it works out which project the current directory belongs to and sends that project's token to the XOROX backend as a bearer token, scoped to that one project. Run xorox status to see what a directory resolves to and whether its credential is valid; it never prints the token.
Revoking and rotating
There's no in-place rotation. To replace a credential: create a new one in the Credentials tab, revoke the old one, then run xorox init in the project and enter the new token. A revoked credential stops working immediately and can't be restored. Revoking prevents future access only: Ruleset text an agent has already received in a running conversation stays in that conversation.
Multiple credentials
A project can have more than one credential — for example, one per teammate or machine — so you can revoke one without affecting the others. Each credential has its own name, shown in the Credentials list.
Advanced: custom API base URL
An optional XOROX_API_BASE_URL environment variable overrides the backend the agent talks to (defaults to https://api.xorox.eu). Most projects never need to set this.