# Provider status

`status(context, { abortSignal })` on an Agent Definition tells you if its provider is signed in and has quota. The built-in Codex and Claude Code Drivers (model runners) reuse T3's account and quota probes. A check starts no Agent Invocation, prompt, or conversation.

The Console shows status on Usage, from the `status.get` operation of the Console endpoint. The optional `agent` input picks one Agent Definition. Console access rules protect it in production, also with a custom base path. Status works when `console.invoke` is off. Running tasks still needs that opt-in.

## Read the result

A result has `agent`, `provider`, `checkedAt`, `stale`, `installed`, `authenticated`, `readiness`, and optional subscription `usageLimits`. When the provider gives authoritative evidence, it also has `modelCompatibility` for the configured model and `workspaceCapacity` for workspace or project spending capacity. Quota windows hold percentages and reset times, not money costs.

Each check is:

- `ready`: the executable, authentication, and available quota passed.
- `unavailable`: an executable is missing, authentication failed, the provider returned an error, or a quota window is used up.
- `unknown`: readiness is not clear. This includes a quota, model compatibility, or workspace capacity check that is unsupported or failed.
- `unsupported`: the Driver has no account inspection.

Readiness holds at `checkedAt` only, not for later requests. A clear incompatible-model or workspace-capacity signal makes readiness `unavailable`, and invocation preflight rejects before capability preparation or checkout. Missing evidence stays `unknown` and does not claim the dimension is available.

## Caching

- The Console shares concurrent probes per Agent Definition, caches results for 30 seconds, and aborts probes after 15 seconds.
- A failed refresh keeps the previous evidence with `stale: true` and `readiness: "unknown"`.
- The built-in Drivers also keep each result for 30 seconds per Agent Definition. They group results by credential source when `driver.credentials` is set, else by host account. A preflight in that window reuses it.

A check uses the same Driver credentials, credential profile, environment, and launcher as an invocation. Provider resolvers get `purpose: "inspection"` and no invoker or mounted Workspace. Resolvers that need those fields must handle their absence. A custom launcher gets a temporary working directory and no tool environment requirements. The probe releases credential and launcher files after the probe exits.

Console status responses never include raw provider diagnostics, account emails, or credentials. Liveness endpoints belong to your app.

<!-- vitehub-docs:section-links -->
## In this section

- [Start](https://vitehub.dev/raw/docs/agents.md)
- [Define and run](https://vitehub.dev/raw/docs/agents/agent-definitions.md)
- [Instructions and tools](https://vitehub.dev/raw/docs/agents/instructions.md)
- [History and context](https://vitehub.dev/raw/docs/agents/chat-history-sessions.md)
- [Channels](https://vitehub.dev/raw/docs/agents/channels.md)
- Inspect and evaluate
  - [Observability](https://vitehub.dev/raw/docs/agents/observability.md)
  - [Test an Agent](https://vitehub.dev/raw/docs/agents/testing.md)
  - [Evals](https://vitehub.dev/raw/docs/agents/evals.md)
  - [Provider status](https://vitehub.dev/raw/docs/agents/provider-status.md) (this page)
- [Advanced](https://vitehub.dev/raw/docs/agents/agent-presets.md)
- [Recipes](https://vitehub.dev/raw/docs/agents/support-agent.md)
- [Presets](https://vitehub.dev/raw/docs/agents/presets.md)
- [Capabilities](https://vitehub.dev/raw/docs/agents/capabilities/access.md)

Next: [AGENT_R0065](https://vitehub.dev/raw/docs/agents/diagnostics/agent_r0065.md)

All pages: [llms.txt](https://vitehub.dev/llms.txt)
