# Access and credentials

Nestor separates who you are from what you may do. People sign in to the
Console; scripts and services use keys issued to a **service account**. Every
credential acts within one project and the roles granted there.

| Credential | Use it to | It cannot |
| --- | --- | --- |
| Console sign-in | Manage the project's resources and issue keys. | Act as an unattended backend credential. |
| Service account management key | Manage resources from the CLI, SDK or API. | Call an Endpoint, or administer access and keys. |
| [Invocation key](/inference/keys) | Call permitted Endpoints. | Create, list, change or delete anything. |

## Service accounts and management keys

1. In **Access**, create a **Service account** with the project role its work
   needs. `ai_admin` covers Inference, Training and Data.
2. Create a management key for it with an explicit expiry. Copy the value now;
   it is shown once.
3. Configure the [CLI](/cli) or [SDK](/sdks/python) with four settings:
   `NESTOR_API_URL`, `NESTOR_ORGANIZATION`, `NESTOR_PROJECT` and
   `NESTOR_API_KEY`. Your organization and project IDs are in **Settings**.

The key ID or prefix shown in lists is a label, not a credential; use the full
value. A project-scoped service account may not be allowed to list projects,
so configure the project ID directly.

If creating a key returns 503 while the identity service is briefly unavailable,
retry with the same `Idempotency-Key`.

## Rotate and revoke

To rotate a management key, create a replacement under the same service account,
update everything that uses it, confirm it works, then revoke the old key.
Revoking a credential stops new requests made with it; it does not stop work
already running. Cancel or delete that work explicitly.

## Keep credentials safe

- Inject keys from your secret manager; never commit them or paste them into
  chat or support messages.
- Use short expiries for test keys and revoke them when done.
- Give each application its own invocation key, bound to the Endpoint it calls.
- Store credentials your workloads need as [Secrets](/inference/keys), not in
  source code or images.

Every key creation, revocation and permission change is recorded in the audit
log.
