- Docs
- Models and integrations
- Anthropic
Anthropic
Anthropic direct uses a key the owner stores on the server. The value is read from standard input or a file descriptor, never from the command line, and no API, CLI, app, log or ledger entry returns it.
-
On the server, set
NURAMESH_SECRET_DIRto an absolute directory outside every repository, mode0700. The file store is for self-hosted servers: it is refused whenNURAMESH_HOSTEDis set. Optionally setNURAMESH_KEY_CACHE_SECONDS. -
Create the connection through the API or the app. The CLI cannot:
PUT /v1/models/connections/anthropic. -
As the owner, store the key. The CLI finds the server at
--serverorNURAMESH_API_URL:Terminal window nuramesh models key set anthropic --stdin --reason "first key for the production connection"Type or pipe the key on standard input from a password manager. Setting a key tests it with one provider request first. If the test fails, the key is not stored (
key_test_failed) and the connection is unchanged. -
Look at the state (versions and states, never the value) and test the connection:
Terminal window nuramesh models key status anthropicnuramesh models test anthropic --team my-team --human human:you -
Rotate with
nuramesh models key rotate anthropic ...; the old version stays for a grace time you choose (--grace-seconds). Revoke withnuramesh models key revoke anthropic --reason "..." --confirm <organization id>. Only the owner role may set, rotate or revoke.
Run nuramesh models key --help for every option.
Good to know
Section titled “Good to know”- Anthropic calls are retried on 429, 500, 502, 503 and 529, up to 3 attempts. A
Retry-Afterof up to 30 seconds is honoured; otherwise the wait is 1 second, then 2. A longerRetry-Afteror a 401 is not retried. - Anthropic runs here with global processing, so it takes synthetic data only.
- A key held in a file instead (
NURAMESH_ANTHROPIC_KEY_FILE) still works on a self-hosted server; see Model connections.
These steps were checked against the adapter with a fake transport. No live Anthropic call was made for this page.
The key set command was not run, because it needs a running server and a provider that accepts the key; only
nuramesh models key --help and nuramesh models key set --help were run.
Was this page helpful?