Skip to content
Docs
Request access

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.

  1. On the server, set NURAMESH_SECRET_DIR to an absolute directory outside every repository, mode 0700. The file store is for self-hosted servers: it is refused when NURAMESH_HOSTED is set. Optionally set NURAMESH_KEY_CACHE_SECONDS.

  2. Create the connection through the API or the app. The CLI cannot: PUT /v1/models/connections/anthropic.

  3. As the owner, store the key. The CLI finds the server at --server or NURAMESH_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.

  4. Look at the state (versions and states, never the value) and test the connection:

    Terminal window
    nuramesh models key status anthropic
    nuramesh models test anthropic --team my-team --human human:you
  5. Rotate with nuramesh models key rotate anthropic ...; the old version stays for a grace time you choose (--grace-seconds). Revoke with nuramesh 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.

  • Anthropic calls are retried on 429, 500, 502, 503 and 529, up to 3 attempts. A Retry-After of up to 30 seconds is honoured; otherwise the wait is 1 second, then 2. A longer Retry-After or 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?