Get started Core concepts

Core concepts

Terms used throughout these docs.

Organization and Workspace

An Organization is the account: billing, SSO and membership live here. A Workspace is an isolated environment inside it. Agents, API keys, budgets, guardrails and the audit log each belong to exactly one workspace. Isolation is enforced in the database, not only in the UI.

Most organizations run one workspace per environment or team, such as prod and staging, so a runaway budget or revoked key in one can't affect the other.

Agent

An Agent is the unit you author in the console: a name, a default model, a system prompt, and the tools and policy it may use. An agent has four states:

StateMeaning
registeredGoverned and listed, but hasn't made a call yet.
activeHas made at least one governed call. The first call activates it; there is no separate go-live step.
pausedStopped, reversibly. Its credential is refused, but its bindings and history are kept.
retiredPermanent. The record is kept, but the agent can never call again.

API key

Your code authenticates with an API key (sk_...), never with a password or a provider credential. There are three kinds:

KindWhat it is
Provider keyYour upstream provider credential, such as an OpenAI, Anthropic, or Gemini key. Stored encrypted and added to calls server-side. Your application uses a Forgebench key instead.
Developer keyIssued to a person. Uses the gateway default credential or a selected provider credential. Has its own scopes, model allowlist, and daily and monthly spend caps.
Agent keyBelongs to exactly one agent, so a per-key spend cap is also a per-agent cap.

The secret is shown once, at creation. See API keys and spend for details and rotation.

Budget

A Budget is a spend cap checked before a call is forwarded. Workspace, key, agent, and model caps can apply, along with budget-pool and routing-policy limits. A call must pass every applicable cap. See Budgets.

Guardrail

A Guardrail checks content according to the workspace's policy. Input checks run before a model request; output checks run after generation. Depending on the check, actions include logging, redaction, and denial. Output denial requires a buffered response, so a request for streaming can be refused when that policy is enabled. Completed-trace scanning also produces findings for review and can pause an agent at a configured threshold.

Policy

Policy means everything that limits what a call or agent can do: the key's model allowlist, the agent's tool bindings, guardrail settings and budget caps.

The governed path

Every model request routed through Forgebench is authenticated, checked against budget, sent with the provider credential, metered, and audited. Forgebench's model routes share these governance checks.

Session reporting is separate. A coding tool can keep using its own subscription and send session metadata and usage to Forgebench. Those vendor requests do not pass through Forgebench's gateway budgets or routing. Choose reporting, routing, or both in Developer setup.

trace_id

Every governed call returns a trace_id. It links the call to its audit entry, metering record and trace. See Make your first call for where it appears, and Traces and Audit for how each uses it.

Next

Cookie settings

Our Cookie Policy lists every cookie and what it does.