workspace
The signed-in caller's workspace: the activity feed and one cheap overview for the workspace rail and the Inbox header. The feed is the audit log, filtered to what the caller could already see.
GET / v1/ activity
The activity feed: what happened to what you can see
The audit log as a feed a person can read, newest first. A row is visible to the caller in two cases:
- the resource's own read rule already grants it to the caller. That is, the caller is its owner user, a member of its owner org, or its creator (runs, rollouts, plans, coach sessions).
- the caller took the action
A row about a repo is shown on that second ground only while the caller can still read the repo. Public repos grant nothing here. This is the caller's own feed. It is not a public timeline.
Visibility is part of the query. It is not applied as a filter over a page. So nothing about a resource the caller cannot see reaches the page arithmetic, including a count.
summary is one sentence the UI can show verbatim. cost_usd is set only on the row where a cost was incurred. That is the row for a finished run, a coach session, a planner decision or a closed endpoint session. So summing a page never counts a dollar twice. actor.kind says which credential wrote the row. actor.agent is planner only when a plan's planner took the action. An API key is reported as a key, whoever held it.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
actor_kind | query | ActivityActorFilter |
|
resource_type | query | ActivityResourceType | |
since | query | string (date-time) | Only rows at or after this instant (RFC 3339). |
owner | query | Handle | Only rows about resources owned by this handle (user or org). An unknown handle is an empty page, not a 404. |
limit | query | integer | Page size. |
cursor | query | string | Opaque cursor from the previous page's |
Responses
| Status | Description | Body |
|---|---|---|
200 | A page of activity, newest first. | ActivityPage |
401 | Missing or invalid credentials. | Problem |
422 | Request failed validation. | Problem |
GET / v1/ me/ overview
Counts for the workspace rail and the Inbox header
One cheap call that returns:
- the approval requests awaiting a person on devices the caller can see (the ten newest with their checks)
- active runs, running endpoints and active plans
- devices online
- today's model spend (coach sessions + planner decisions since UTC midnight), with a sentence saying how it was computed
Every count is a query over the same visibility rule as the list endpoint it summarises. So each count can be cross-checked against that list.
Responses
| Status | Description | Body |
|---|---|---|
200 | The caller's overview. | MyOverview |
401 | Missing or invalid credentials. | Problem |
GET / v1/ me/ usage
What an account spent over a time range
The costs the hub recorded for one account over a time range (UTC), in four lines:
- the hub's agent (its AI model calls and its sandbox), against the monthly agent allowance
- Lucen cloud CPU work (hosted robot and model checks, CPU training runs, sim tests), against the monthly CPU allowance
- Lucen cloud GPU work (training runs and inference sessions on a GPU), which has no allowance
- other AI model calls (Coach advice, planner decisions)
Each line lists what spent it, the largest first. So every dollar links to the run, sim test, check or session behind it. Every number is a sum of the ledger's rows. The account is the caller's own, or an organization the caller is a member of (owner). Any other handle is 404.
range picks the window. month is one calendar month, the default. today, 7d and 30d are whole UTC days that end with today. group_by adds groups, the same costs summed another way. The groups add up to total_usd. spend_cap says where the calendar month stands against the account's cap.
buckets splits the same costs over time. A bucket is one hour for today and one day otherwise. They run from the start of the range up to the bucket that holds now; a past range has every bucket. The buckets add up to total_usd, each bucket's lines to its own total, and its groups likewise when group_by is set. now is where the account stands at this moment, whatever range is. It holds this calendar month's allowances, this month's Lucen cloud spend as the cap counts it, and the hosted jobs that are queued or running, each with its rate.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
range | query | string | The window: |
month | query | string | The calendar month as |
owner | query | Handle | Your own handle (the default) or the slug of an organization you are a member of. |
group_by | query | UsageGroupBy | Sum the costs by hardware ( |
limit | query | integer | Items listed per line, the largest first. |
Responses
PUT / v1/ me/ spend-cap
Set an account's monthly spend cap
Sets a monthly cap on an account's Lucen cloud spend: hosted training runs, sim tests, robot and model checks, and endpoint sessions.
In warn mode the hub warns at 50, 75 and 100 percent. In stop mode it also refuses new hosted work once the month's recorded spend reaches the cap. The refusal is 429 until the month ends. Work that is already running keeps running.
Billing is off during beta, so the cap applies to the costs the hub records. Only a signed-in person sets a cap, so no key can raise its own. An organization's cap is set by its owners.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
owner | query | Handle | Your own handle (the default) or the slug of an organization you own. |
Request body
| Field | Type | Description |
|---|---|---|
limit_usd | number | The monthly cap in US dollars. |
mode | SpendCapMode |
Responses
| Status | Description | Body |
|---|---|---|
200 | The cap, and where this month stands against it. | SpendCap |
401 | Missing or invalid credentials. | Problem |
403 | Authenticated but not allowed (visibility, membership or scope). | Problem |
404 | Resource not found (or hidden from the caller). | Problem |
422 | Request failed validation. | Problem |
DELETE / v1/ me/ spend-cap
Remove an account's spend cap
Removes the account's monthly spend cap. Hosted work is then limited only by the allowances. Removing a cap that is not set is a no-op.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
owner | query | Handle | Your own handle (the default) or the slug of an organization you own. |
Responses
GET / v1/ model-keys
List your workspaces' AI model keys
Lists your own workspace and every organization you own. Each entry says where an AI model call for that workspace is billed now.
A stored key is shown by its status only. That is its prefix and last four characters, when it was checked and last used, the last error, the monthly cap and this month's spend.
feature: off means this hub cannot store keys. It has no encryption key configured.
Responses
| Status | Description | Body |
|---|---|---|
200 | Your workspaces, yours first. | ModelAccess |
401 | Missing or invalid credentials. | Problem |
403 | Authenticated but not allowed (visibility, membership or scope). | Problem |
PUT / v1/ model-keys/ {owner}
Add or replace a workspace's key for one vendor
Stores an API key for one vendor (provider, Anthropic by default) for a workspace. Every AI model call to that vendor made for the workspace then uses it, and is not charged for the model.
The hub checks the key first with one free call to the vendor. A key the vendor refuses is 422, naming the vendor's error. Nothing is stored then. 502 means the vendor could not be reached.
The key is encrypted at rest. Responses show its prefix and last four characters only.
monthly_cap_usd caps what the workspace's model calls may record in a calendar month (UTC). Leave it out to keep the stored cap, or send null to remove it. Leave out key to change only the cap of the stored key.
Only a signed-in person may add or remove a key, so no API key can plant a credential that spends. An organization's key is set by its owners. 503 means this hub has no encryption key configured.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
owner | path | Handle | Your own handle, or the slug of an organization you own. |
Request body
| Field | Type | Description |
|---|---|---|
provider | string | The vendor the key is for. |
key | string | The vendor's API key. An Anthropic key starts with |
monthly_cap_usd | number | null | A monthly cap in US dollars on the workspace's AI model calls, rounded down to the cent. Leave it out to keep the stored cap. Send |
Responses
| Status | Description | Body |
|---|---|---|
200 | The workspace, with the key's status. | ModelAccessWorkspace |
401 | Missing or invalid credentials. | Problem |
403 | Authenticated but not allowed (visibility, membership or scope). | Problem |
404 | Resource not found (or hidden from the caller). | Problem |
422 | Request failed validation. | Problem |
502 | The vendor could not be reached to check the key. Nothing was stored. | Problem |
503 | A service this endpoint needs is not configured in this deployment. The API boots with zero secrets. An endpoint that needs one says so instead of returning a stack trace. | Problem |
DELETE / v1/ model-keys/ {owner}
Remove a workspace's key for one vendor
Deletes the workspace's stored key for the vendor, Anthropic by default. Its AI model calls to that vendor then answer 402 until a key is added again, unless the hub's own key serves the workspace. Removing a key that is not there changes nothing.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
owner | path | Handle | Your own handle, or the slug of an organization you own. |
provider | query | LlmVendorId | The vendor whose key to remove. |
Responses
GET / v1/ connections
List your workspaces' GitHub and Hugging Face connections
Lists your own workspace and every organization you own. Each entry shows its GitHub connection and its Hugging Face connection, or null.
A GitHub connection is an installation of the hub's GitHub App. It reads the repos the person chose, and nothing else. The hub uses it to link a run's commit and to compare commits. A Hugging Face connection is a token, stored encrypted. The hub uses it to import private repos and to push policies and datasets. A token is shown by its last four characters only.
github.available and huggingface.available say whether this hub is set up for each. connect_url is where the Connect button goes.
Responses
| Status | Description | Body |
|---|---|---|
200 | Your workspaces, yours first. | Connections |
401 | Missing or invalid credentials. | Problem |
403 | Authenticated but not allowed (visibility, membership or scope). | Problem |
PUT / v1/ connections/ {owner}/ {provider}
Connect GitHub or Hugging Face to a workspace
GitHub. Send installation_id and code from GitHub's redirect after the App was installed. The hub exchanges code for the person's own GitHub authorization. It then checks that this person can see the installation, so no one can claim another account's installation. The person's GitHub token is not kept. The hub keeps the installation id, the account and the repo list.
Hugging Face. Send code and redirect_uri from "Sign in with Hugging Face", or paste a token as token. The hub checks the token with Hugging Face and stores it encrypted.
Modal. Send a Modal token as token_id and token_secret, and the environment to run in. The hub checks the token with Modal and stores it encrypted. Jobs with executor: own_modal then run in that workspace. Deploy the job functions there first.
A provider that refuses is 422 with its own reason. 502 means it could not be reached. 503 means this hub is not set up for it. Nothing is stored then. Only a signed-in person may connect or disconnect. An organization's connections are set by its owners.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
owner | path | Handle | Your own handle, or the slug of an organization you own. |
provider | path | ConnectionProvider |
Request body
| Field | Type | Description |
|---|---|---|
installation_id | integer | null | |
code | string | null | |
redirect_uri | string (uri) | null (uri) | |
token | string | null | |
token_id | string | null | Modal only. The token's id, |
token_secret | string | null | Modal only. The token's secret, |
environment | string | null | Modal only. The environment jobs run in. Defaults to |
Responses
| Status | Description | Body |
|---|---|---|
200 | The workspace, with its connections. | ConnectionWorkspace |
401 | Missing or invalid credentials. | Problem |
403 | Authenticated but not allowed (visibility, membership or scope). | Problem |
404 | Resource not found (or hidden from the caller). | Problem |
409 | State conflict (duplicate handle/slug, wrong repo kind, terminal job, ...). | Problem |
422 | Request failed validation. | Problem |
502 | GitHub or Hugging Face could not be reached. Nothing was stored. | Problem |
503 | A service this endpoint needs is not configured in this deployment. The API boots with zero secrets. An endpoint that needs one says so instead of returning a stack trace. | Problem |
DELETE / v1/ connections/ {owner}/ {provider}
Disconnect GitHub or Hugging Face from a workspace
Forgets the connection. A Hugging Face token is wiped. The GitHub App stays installed on GitHub until you remove it there (manage_url). Runs keep their archived code, so their diffs still work. Removing a connection that is not there changes nothing.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
owner | path | Handle | Your own handle, or the slug of an organization you own. |
provider | path | ConnectionProvider |
Responses
POST / v1/ github/ webhook
GitHub's events for the hub's GitHub App
GitHub calls this when the App is removed, suspended or given other repos. The hub checks the X-Hub-Signature-256 header against the App's webhook secret first. A wrong signature is 401 and changes nothing. A removed installation is forgotten everywhere. A changed repo list is read again. Other events are acknowledged and ignored.
Request body
Responses
Schemas (70)
The schemas these operations reach before any other tag’s do. A type that links elsewhere is rendered on that tag’s page.
ActivityActorFilter
listActivity's actor filter: the three ActivityActorKinds, plus agent. agent selects the rows a plan's planner took (actor.agent: planner), and the rows an agent session's key or a key marked as an agent's wrote (actor.agent: agent). It matches them whichever credential the agent acted as.
ActivityPage
| Field | Type | Description |
|---|---|---|
items | array of Activity | |
next_cursor | string | null |
MyOverview
| Field | Type | Description |
|---|---|---|
generated_at | string (date-time) | |
viewer | UserPublic | The person this credential belongs to: a session's user, or a key's owner. The workspace rail and the account button print it, so a page needs no second call to |
approvals | OverviewApprovals | |
runs | OverviewJobs | Executed runs ( |
endpoints | OverviewJobs | Endpoints queued for a server, or running. |
plans | OverviewPlans | |
rollouts | OverviewJobs | Sim-gate rollouts the caller can see, queued / running / total. |
devices | OverviewDevices | |
keys | OverviewKeys | null | The caller's live API keys, counted; null for a key credential. |
repos | OverviewRepos | The caller's own repos by kind, for the rail's My models and My datasets. |
model_spend | ModelSpend | |
hub_admin | boolean | True when the caller may open the hub's admin pages: a signed-in session of a hub admin. Always false for an API key. |
campaigns | OverviewCampaigns | What the rail prints beside Campaigns. |
agent | OverviewAgent | The caller's agent sessions, and those waiting on a person (a spend above the session's pre-approved budget). |
trials | OverviewTrials | Real-robot trials: how many candidates wait on a person's verdict (the Inbox's "needs your verdict" cards) and how many run. |
spend_caps | array of SpendCap | Spend caps on the caller's own account and on their organizations that have reached 50 percent or more this month. The Inbox warns on each. |
spend_holds | OverviewSpendHolds | Cloud work an AI agent's key asked for beyond the free allowance, waiting for a person's confirmation. |
skills | OverviewSkills | Robot skill versions proposed on robots the caller can edit. Each waits for a person to install or decline it. |
model_access | ModelAccessStatus | Where your own workspace's AI model calls are billed, and where a person adds a key. |
billing | OverviewBilling | null | Your own workspace's use this period and what it will pay, for the rail. Null on a hub that takes no payments. |
allowance | TaskAllowance | null | The free monthly allowance for the hub's agent, counted in training tasks. Dollars stay in |
UsageGroupBy
How groups sums the costs: by hardware (gpu), by robot, by the API key that started the work, or by the person who started it.
MyUsage
One account's recorded costs over a time range (UTC). Nothing here is billed while charged is false.
| Field | Type | Description |
|---|---|---|
account | Handle | |
account_kind | string | |
range | string | |
month | string | null |
|
bucket | string | How |
buckets | array of UsageBucket | The range's costs over time, one bucket per hour or per day. They are consecutive and complete from |
now | UsageNow | Where the account stands at this moment, whatever |
period_start | string (date-time) | The first instant of the range, UTC. |
period_end | string (date-time) | The end of the range, UTC, not included. For |
current | boolean | True when the range includes now. |
charged | boolean | Whether these costs are billed to anyone. No payment system exists yet, so this is false: the numbers are what the work cost the hub. |
total_usd | number | The four lines' |
agent | UsageLine | The hub's agent: its AI model calls at list price and its sandbox time. |
cloud_cpu | UsageLine | Lucen cloud CPU work: hosted robot and model checks, CPU training runs and sim tests. |
cloud_gpu | UsageLine | Lucen cloud GPU work: training runs and inference sessions on a GPU tier. There is no allowance, so |
model_calls | UsageLine | AI model calls outside the agent: Coach advice and planner decisions. They do not count against the agent allowance, so |
group_by | UsageGroupBy | null | |
groups | array of UsageGroup | null | Every item of the four lines, summed by |
spend_cap | SpendCap | null | The account's monthly spend cap and where the current calendar month stands against it, whatever |
generated_at | string (date-time) |
SpendCapPut
| Field | Type | Description |
|---|---|---|
limit_usd | number | The monthly cap in US dollars. |
mode | SpendCapMode |
ModelAccess
Your workspaces and where their AI model calls are billed.
| Field | Type | Description |
|---|---|---|
feature | string |
|
settings_url | string | The web app's model access page, as a path. |
workspaces | array of ModelAccessWorkspace | Your own workspace first, then the organizations you own. |
ModelKeyPut
| Field | Type | Description |
|---|---|---|
provider | string | The vendor the key is for. |
key | string | The vendor's API key. An Anthropic key starts with |
monthly_cap_usd | number | null | A monthly cap in US dollars on the workspace's AI model calls, rounded down to the cent. Leave it out to keep the stored cap. Send |
ModelAccessWorkspace
| Field | Type | Description |
|---|---|---|
owner | RepoOwner | |
status | ModelAccessState | |
can_manage | boolean | True when this credential may add or remove the key. That takes a signed-in person who is the workspace, or one of its owners. |
key | ModelKey | null | The workspace's Anthropic key. |
vendors | array of ModelAccessVendor | Every vendor the hub can call, Anthropic first. Each says where a call to that vendor is billed now and carries the stored key, if any. |
LlmVendorId
An AI model vendor. openrouter reaches open-weight models through OpenRouter.
Connections
| Field | Type | Description |
|---|---|---|
github | ConnectionFeature | |
huggingface | ConnectionFeature | |
modal | ConnectionFeature | |
workspaces | array of ConnectionWorkspace |
ConnectionProvider
ConnectionPut
GitHub: installation_id and code. Hugging Face: code and redirect_uri, or token. Modal: token_id, token_secret and an optional environment.
| Field | Type | Description |
|---|---|---|
installation_id | integer | null | |
code | string | null | |
redirect_uri | string (uri) | null (uri) | |
token | string | null | |
token_id | string | null | Modal only. The token's id, |
token_secret | string | null | Modal only. The token's secret, |
environment | string | null | Modal only. The environment jobs run in. Defaults to |
ConnectionWorkspace
| Field | Type | Description |
|---|---|---|
owner | RepoOwner | |
can_manage | boolean | True when the caller may connect and disconnect here. Only a signed-in owner may. |
github | GithubConnection | null | |
huggingface | HuggingfaceConnection | null | |
modal | ModalConnection | null |
OverviewApprovals
| Field | Type | Description |
|---|---|---|
pending | integer | Pending approval requests on devices the caller can see. |
can_decide | boolean | True for a signed-in session. An API key can never approve or deny (session-only). For a key this is false, and |
items | array of ApprovalRequest | The ten newest, each with |
OverviewJobs
| Field | Type | Description |
|---|---|---|
queued | integer | |
running | integer | |
total | integer | Every one the caller can see, whatever its status. For runs, imported and plan runs are included (the same WHERE as an unfiltered |
OverviewPlans
| Field | Type | Description |
|---|---|---|
active | integer | |
waiting_on_approval | integer | Active plans whose current approval request is still pending a person. |
total | integer | Every plan the caller can see, whatever its status. |
OverviewDevices
| Field | Type | Description |
|---|---|---|
total | integer | |
online | integer | Devices whose driver posted a signed event (a heartbeat, |
running | integer | Devices running an approval right now ( |
online_window_s | integer |
OverviewKeys
The caller's API keys, counted. Present for a session only. A key learns nothing about its siblings, including how many there are. listKeys is session-scoped for the same reason.
| Field | Type | Description |
|---|---|---|
total | integer | Keys the caller has not revoked. |
OverviewRepos
The caller's own repositories by kind. This counts every repo owned by the caller's user or by an org they belong to, public and private alike. It is the WHERE of listRepos?owner= for each of those handles, summed. The workspace rail prints it beside My models and My datasets. /settings/models and /settings/datasets list the same rows through listRepos.
| Field | Type | Description |
|---|---|---|
robots | integer | |
models | integer | |
datasets | integer | |
skill_models | integer | Of |
ModelSpend
Model dollars since UTC midnight, over what the caller can see.
| Field | Type | Description |
|---|---|---|
usd | number |
|
coach_usd | number | |
plan_usd | number | |
coach_sessions | integer | |
plan_decisions | integer | Planner decisions metered in the window, rejected ones included (they were paid for). |
agent_usd | number | Agent sessions' model calls in the window (list price, from their ledger rows); the sandbox is not model spend. |
agent_calls | integer | Agent model calls metered in the window. |
unpriced | integer | Sessions and decisions metered at $0 because their model has no list price. |
since | string (date-time) | |
until | string (date-time) | |
basis | string | One sentence saying how the number was computed. |
OverviewCampaigns
Campaigns the caller can see; waiting of them have a round waiting on a decision.
| Field | Type | Description |
|---|---|---|
total | integer | |
active | integer | |
waiting | integer |
OverviewAgent
The caller's agent sessions. It counts how many are live and lists the ones waiting on a person. Each comes with its pending spend approvals. The list is newest first, at most ten sessions.
| Field | Type | Description |
|---|---|---|
live | integer | Sessions not yet ended. |
pending_spend_requests | integer | Spend requests waiting on a person across those sessions. Each is one Inbox item. |
allowance | AgentAllowance | The rail's "Agent, this month" box: the caller's own account's month-to-date agent spend against the free allowance. |
running | integer | |
waiting_on_you | integer | |
waiting_on_event | integer | |
idle | integer | |
sleeping | integer | Sessions asleep (nothing pending, nothing billing). |
total | integer | |
waiting | array of OverviewAgentWaiting | |
pending_decisions | integer | Decisions waiting on a person across the caller's sessions: plan, spend and shortlist. A handoff is the device consent request, already counted in |
decisions | array of AgentDecision | Those decisions, newest first, at most ten (the Inbox's cards). The list is kept light. |
model_backend | string | Whether the hub's model backend (the agent, the Coach, the planner) can answer right now. It reflects what this API process last learned.
Best effort: each API process learns on its own. The web's agent composer reads it so it does not offer "free" model turns that cannot be served. |
OverviewTrials
Real-robot trials the caller can see.
| Field | Type | Description |
|---|---|---|
needs_verdict | integer | |
running | integer | |
items | array of OverviewTrialItem | The newest trials that need a verdict: the Inbox's cards. |
OverviewSpendHolds
Held cloud spend that waits on a person of the caller's account or organizations.
| Field | Type | Description |
|---|---|---|
pending | integer | |
can_decide | boolean | True for a session. A key may read holds and never decide one. |
items | array of SpendHold | The newest pending holds, the Inbox's cards. |
OverviewSkills
Proposed robot skill versions on robots the caller can edit: their own and their organizations'.
| Field | Type | Description |
|---|---|---|
waiting | integer | |
can_decide | boolean | True for a session. A key may read waiting versions and never install one. |
items | array of OverviewSkillVersion | The newest waiting versions, the Inbox's cards. |
ModelAccessStatus
Where one workspace's AI model calls go, and where a person adds a key.
| Field | Type | Description |
|---|---|---|
status | ModelAccessState | |
settings_url | string | The web app's model access page, as a path. |
OverviewBilling
| Field | Type | Description |
|---|---|---|
paying | boolean | True when the workspace has a payment method. |
free_usd | number | What the workspace may use free this period. |
used_usd | number | Use recorded this period at the hub's prices. |
billable_usd | number | Use past the free amount. The next invoice charges it. |
cap_usd | number | null | |
period_end | string (date-time) |
TaskAllowance
What is left of the free monthly allowance, as the number of agent training tasks it is likely to carry. usd_left is the dollars left this month. per_task_usd is the median model and sandbox cost of a finished training task on this hub. Until three have finished, it is a fixed estimate. tasks_left_estimate is usd_left divided by it, rounded down. A complex task may use more than one task's share.
| Field | Type | Description |
|---|---|---|
usd_left | number | |
tasks_left_estimate | integer | |
per_task_usd | number | |
measured_tasks | integer | Finished training tasks the median was taken over; 0 while the estimate is fixed. |
basis | string | One sentence saying how the estimate was computed. |
UsageBucket
One hour or one day of the range, with what the account recorded in it.
| Field | Type | Description |
|---|---|---|
start | string (date-time) | The bucket's first instant, UTC. |
end | string (date-time) | The bucket's end, UTC, not included; the next bucket's |
total_usd | number | Every line's amount in this bucket, summed. |
lines | UsageBucketLines | |
groups | array of UsageBucketGroup | null | This bucket's costs summed by |
UsageNow
Where the account stands right now, independent of the range asked for. The numbers are the ones the hub enforces: the allowances are read the way their stops read them, and the cloud spend the way the spend cap counts it.
| Field | Type | Description |
|---|---|---|
period_start | string (date-time) | The first instant of the current calendar month, UTC. |
period_end | string (date-time) | When the month ends and every allowance starts again, UTC. |
agent | UsageAllowance | This month's agent spend against the monthly agent allowance. |
cloud_cpu | UsageAllowance | This month's Lucen cloud CPU spend against the monthly CPU allowance, with what the open CPU jobs reserve. |
cloud | UsageCloudMonth | |
open_jobs | array of UsageOpenJob | What is costing money right now, or holds a reservation. These are the account's hosted training runs, sim tests, checks and endpoints that are queued or running, and an agent session whose sandbox is running. Work on the person's own machine is free and is not listed. Newest first. |
UsageLine
| Field | Type | Description |
|---|---|---|
used_usd | number | Recorded over the range. In the current month the agent's line includes a sandbox still running, as the allowance counts it. |
limit_usd | number | null | The monthly allowance this line counts against; null when none applies. |
reserved_usd | number | The most that jobs still queued or running can add, as the allowance holds it. Zero for past ranges and for lines with no allowance. |
unpriced | integer | Rows with no list price, counted as $0. |
items | array of UsageItem | What spent it, the largest first, at most |
item_count | integer | How many things spent on this line, including those past |
UsageGroup
| Field | Type | Description |
|---|---|---|
key | string | What the items share. For |
label | string | The key in words, such as |
cost_usd | number | |
item_count | integer | How many items the group sums. |
entries | integer | Ledger rows summed into |
ModelAccessState
Where an AI model call for a workspace goes now.
workspace: the workspace's own key for the vendor pays.billed: the hub's key answers, and the call is billed to the workspace.hub: the hub's own key, or a recorded demo, answers.key_required: add a key first. Model calls answer402.unavailable: this hub offers no AI model to this workspace and cannot store a key.
ModelKey
A stored key's status. The secret is not part of it.
| Field | Type | Description |
|---|---|---|
provider | LlmVendorId | |
key_prefix | string | The key's first characters, such as |
last4 | string | The key's last four characters. |
verified_at | string (date-time) | When the vendor last accepted the key in the free check. |
last_used_at | string (date-time) | null (date-time) | When an AI model call last used the key. |
last_error | string | null | The last refusal or failure of a call made with the key. The next call that succeeds clears it. |
monthly_cap_usd | number | null | The most the workspace's AI model calls may record in a calendar month (UTC). Null means no cap. |
spent_this_month_usd | number | AI model calls billed to this workspace's key since the first of the month (UTC), at list price. |
added_by | UserPublic | null | The person who added or last replaced the key. |
created_at | string (date-time) | |
updated_at | string (date-time) |
ModelAccessVendor
| Field | Type | Description |
|---|---|---|
vendor | LlmVendorId | |
name | string | |
status | ModelAccessState | |
keys_url | string | null | Where a person makes a key for this vendor. |
key | ModelKey | null |
ConnectionFeature
Whether this hub is set up for a provider, and where Connect goes.
| Field | Type | Description |
|---|---|---|
available | boolean | |
connect_url | string (uri) | null (uri) | GitHub: the App's install page. Hugging Face: the sign-in page, without its |
token | boolean | Hugging Face only. True when a pasted token can be stored. |
note | string | null | One sentence when the provider is not available. |
GithubConnection
| Field | Type | Description |
|---|---|---|
account | string | The GitHub user or organization the App is installed on. |
account_type | string | |
installation_id | integer | |
repository_selection | string | |
repositories | array of GithubRepoRef | The repos the installation can read, at most 200. |
repositories_total | integer | null | |
manage_url | string (uri) | null (uri) | Where to change the repos or remove the App, on GitHub. |
connected_at | string (date-time) | |
connected_by | UserPublic | null | |
refreshed_at | string (date-time) | null (date-time) |
HuggingfaceConnection
| Field | Type | Description |
|---|---|---|
account | string | The Hugging Face user name. |
orgs | array of string | The Hugging Face organizations the token's user belongs to. |
auth | string |
|
scopes | array of string | What the token may do, as Hugging Face reports it, such as |
token_hint | string | The token's last four characters, such as |
expires_at | string (date-time) | null (date-time) | |
connected_at | string (date-time) | |
connected_by | UserPublic | null | |
last_error | string | null |
ModalConnection
A Modal token, stored encrypted. Jobs with executor own_modal run with it.
| Field | Type | Description |
|---|---|---|
account | string | The Modal workspace the token belongs to. |
environment | string | The Modal environment jobs run in. |
token_hint | string | The token id's last four characters. |
connected_at | string (date-time) | |
connected_by | UserPublic | null | |
last_error | string | null |
AgentAllowance
The owner's free monthly allowance for agent model + sandbox spend (no payment system exists yet).
| Field | Type | Description |
|---|---|---|
period_start | string (date-time) | |
resets_at | string (date-time) | The first of next month, UTC. |
payment_method | string |
|
limit_usd | number | |
used_usd | number | |
remaining_usd | number | |
basis | string | One sentence saying how |
OverviewAgentWaiting
A session waiting on a person: the Inbox's card.
| Field | Type | Description |
|---|---|---|
session_id | Id | |
goal | string | |
approvals | array of AgentApproval | |
since | string (date-time) |
AgentDecision
One decision the session waits on or waited on. All four kinds share one shape. The kind-specific part is plan, approval, shortlist or handoff. Every pending one is also counted and listed in MyOverview.agent (the Inbox).
| Field | Type | Description |
|---|---|---|
id | Id | |
session_id | Id | |
kind | AgentDecisionKind | |
status | AgentDecisionStatus | |
title | string | The card's title, e.g. "Spend · R5 · yaw", "Shortlist for the robot — pick up to 2 of 3". |
sentence | string | What would happen, in one sentence (hub-generated from the call or the round). |
why | string | null | Why it waits (hub-generated), e.g. "Outside the plan you approved and over the $3.00 per-run limit, so it waits for you." |
on_deny | string | null | What happens if it is denied or left to expire. |
proposal | string | null | The agent's own words for what it proposes, quoted as written. |
budget_usd | number | null | For a spend: the session's compute budget when it was asked. |
budget_after_usd | number | null | For a spend: what would stay of that budget if the call ran to its cap, e.g. "After it, $3.90 of $10.00 stays". |
raise_to_usd | number | null | For a spend: the amount the second button offers as |
expires_at | string (date-time) | null (date-time) | |
created_at | string (date-time) | |
resolved_at | string (date-time) | null (date-time) | |
resolved_by | UserPublic | null | |
resolved_via | string | null | |
outcome | string | null | What the answer was, in words (approved up to $X, denied with the note, shortlisted 1600 and 1900, …). |
answer_via | AgentDecisionAnswer | null | |
links | AgentLinks | null | What the decision is about. Once the call ran, an approved spend whose held call then created a run names that run ( |
plan | AgentPlanRef | null | |
approval | AgentApproval | null | |
shortlist | AgentShortlist | null | |
handoff | AgentHandoff | null |
OverviewTrialItem
| Field | Type | Description |
|---|---|---|
id | Id | |
index | integer | |
of | integer | |
label | string | |
status | TrialStatus | |
device | string | null | |
campaign | string | null | |
round | integer | null | |
tilt_max_deg | number | null | |
criteria_failed | integer | |
criteria_total | integer | |
stopped_at | string (date-time) | null (date-time) |
OverviewSkillVersion
One waiting version, with the robot and the skill it is for.
| Field | Type | Description |
|---|---|---|
robot | string | |
skill | RobotSkillName | |
version | RobotSkillVersion |
UsageBucketLines
The four lines' amounts inside one bucket. They add up to the bucket's total_usd.
| Field | Type | Description |
|---|---|---|
agent | number | |
cloud_cpu | number | |
cloud_gpu | number | |
model_calls | number |
UsageBucketGroup
| Field | Type | Description |
|---|---|---|
key | string | The group, as |
cost_usd | number |
UsageAllowance
| Field | Type | Description |
|---|---|---|
used_usd | number | Recorded this calendar month, as the allowance counts it. |
reserved_usd | number | What the open jobs the allowance covers can still add. Zero where it holds none. |
limit_usd | number | null | The monthly allowance; null where none applies to this account. |
UsageCloudMonth
This calendar month's Lucen cloud spend, the number a spend cap compares: both cloud lines recorded, plus every open hosted job's reservation. Equal to spend_cap.spent_usd and reserved_usd when a cap is set.
| Field | Type | Description |
|---|---|---|
recorded_usd | number | |
reserved_usd | number |
UsageOpenJob
| Field | Type | Description |
|---|---|---|
kind | string | What is running; each kind has its own page. |
id | Id | |
title | string | One phrase naming it, as |
status | string |
|
started_at | string (date-time) | null (date-time) | When it started running, UTC; null while queued. |
hardware | string |
|
rate_usd_per_hour | number | What one hour of it costs: the tier's billed rate plus its host's, the CPU function's host rate, or the sandbox rate. |
reserved_usd | number | The most it can still cost, as the cap and the allowance hold it. Zero for an agent sandbox, which reserves nothing. |
sessions | integer | null | For an endpoint, how many sessions are open on it; null for every other kind. |
redacted | boolean | True for a pre-deploy check of a policy the caller cannot read. Its title does not name the policy, and it has no page for this caller. |
UsageItem
| Field | Type | Description |
|---|---|---|
kind | string | What the cost belongs to; each kind has its own page. |
id | Id | |
run_id | string | null | The training run a Coach session advised on; null for every other kind. |
title | string | One phrase naming it: a run's template and robot, a sim test's policy, an agent's goal. |
cost_usd | number | |
entries | integer | Ledger rows summed into |
last_at | string (date-time) | When the latest of those rows was recorded, UTC. |
hardware | string | What it ran on: |
robot | string | null | The robot repo it was for, as |
member | string | null | The handle of the person who started it. Null when the hub started it on its own. |
api_key | UsageApiKey | null | The API key that started it. Null when a signed-in person or the hub did. |
billed_to | ModelBilledTo | null | Who paid for the AI model calls of an agent session, a Coach session or a plan. |
redacted | boolean | True for a pre-deploy check of a policy the caller cannot read. Its title does not name the policy, and it has no page for this caller. |
GithubRepoRef
| Field | Type | Description |
|---|---|---|
full_name | string | |
private | boolean |
AgentApproval
One spend the agent asked for above its session's budget. It holds the tool call exactly as the model made it, and what the hub estimated it would cost.
| Field | Type | Description |
|---|---|---|
id | Id | |
session_id | Id | |
tool_use_id | string | |
tool | string | The tool the model called ( |
arguments | object | The tool call's arguments as the model produced them; approving runs exactly these. |
estimate_usd | number | The hub's estimate of what the call will cost. |
cap_usd | number | The most it can cost ("at most"). For a run it is the run's own |
rule | AgentSpendRule | null | |
budget_usd | number | null | The session's pre-approved budget when the call was made. |
budget_remaining_usd | number | null | |
reason | string | Why it needs a person: the estimate against what is left of the budget. |
status | AgentApprovalStatus | |
requested_at | string (date-time) | |
resolved_at | string (date-time) | null (date-time) | |
resolved_by | UserPublic | null | |
resolved_via | string | null |
|
note | string | null | |
expires_at | string (date-time) | null (date-time) | When a pending spend stops waiting: the end of the session's window when it was asked ( |
decision_id | string | null | The |
AgentDecisionKind
plan: approve the agent's plan (approveAgentPlan, session-only). Reply in words to change it.spend: a compute call outside the approved plan (resolveAgentApproval).shortlist: pick up to 2 of a round's checkpoints for the real robot (decideRound {action: shortlist}, session-only).handoff: a device consent request. It links to the consent page and is never approved here.
AgentDecisionStatus
pending: waits for a person.resolved: a person answered. For a handoff, the device's consent decision is the answer.expired: nobody answered byexpires_at(a spend). Nothing ran.withdrawn: the session ended, a newer plan replaced it, or the round moved on.
AgentDecisionAnswer
The operation that answers a decision; null for a handoff (the consent page does).
| Field | Type | Description |
|---|---|---|
operation_id | string | |
method | string | |
path | string | The API path with every id filled in. |
AgentLinks
The hub resources a tool call touched, for the page to open.
| Field | Type | Description |
|---|---|---|
run_id | string | null | |
rollout_id | string | null | |
request_id | string | null | |
consent_path | string | null | The web app's consent page for a device request ( |
endpoint_id | string | null | |
plan_id | string | null | |
repo | string | null |
|
campaign | string | null | The campaign's slug. |
round_n | integer | null | The campaign round. |
round_id | string | null | |
decision_id | string | null | A decision card of this session. |
agent_plan_id | string | null | A plan version of this session (not a planner plan, which is |
checkpoint_step | integer | null | A checkpoint of |
device_id | string | null | |
approval_id | string | null | An |
AgentPlanRef
| Field | Type | Description |
|---|---|---|
id | Id | |
version | integer | |
status | AgentPlanStatus | |
cap_usd | number | |
rounds | integer | How many rounds it lists. |
AgentShortlist
The shortlist decision's content: the shortlist, read live from the hub's rows on every request.
| Field | Type | Description |
|---|---|---|
round | RunRound | |
round_id | string | null | |
run_id | string | null | |
max_picks | integer | 2: "at most two checkpoints to the real robot". |
picks | array of integer | The agent's picks, pre-checked. |
why | string | null | The agent's reason for its picks, quoted as written. |
candidates | array of AgentShortlistCandidate | |
control | AgentShortlistControl | null | |
separates | boolean | null |
|
separates_sentence | string | null | |
device | AgentDeviceRef | null | The device the consent requests will be filed for. It is the agent's choice, else the only registered device that accepts the model's contract. Null when no device qualifies, and then no consent request will be filed. |
devices | array of AgentDeviceRef | The owner's devices that accept the model's contract. |
minutes | integer | The run window each consent request asks for. |
scan | object | |
battery | string | |
seeds | integer | |
executor | string | null | |
sentence | string | E.g. "the 20-seed band scan on your picks first (13 cells × 20 seeds with video), not billed". |
answer | object | null | What the person shortlisted ( |
candidates | array of integer | |
note | string | null | |
by | UserPublic | null | |
at | string (date-time) | |
followup | AgentShortlistFollowup | null |
AgentHandoff
A device consent request filed for a shortlisted checkpoint. It links to the consent page. Nothing is approved here.
| Field | Type | Description |
|---|---|---|
request_id | Id | |
consent_path | string |
|
status | ApprovalRequestStatus | |
device | AgentDeviceRef | null | |
model_repo | string | null | |
step | integer | null | |
minutes | integer | null |
UsageApiKey
AgentSpendRule
Which rule judged a spending call, with the numbers:
- the per-run limit its cap was held to
- the budget it had to fit: the campaign's inside a campaign, else the session's, else none
- what that budget had already committed
- the worst case if this call runs to its cap
| Field | Type | Description |
|---|---|---|
level | string |
|
in_plan | boolean | null | For a compute call, whether the approved plan names it. |
plan_id | string | null | The approved plan the call was judged against. |
plan_round | string | null | The plan round it is (its key), when it is one. |
grant_usd | number | null | The standing allowance a person granted, when one is in force. |
grant_remaining_usd | number | null | What was left of it before this call. |
per_run_limit_usd | number | |
budget_usd | number | null | The budget the call had to fit in; null when only the per-run limit applies. |
committed_usd | number | What that budget had already committed (approved caps) before this call. |
worst_case_usd | number |
|
campaign_id | string | null | |
within | boolean | True when the call was inside the rule (auto-approved). |
sentence | string | One sentence for the card, e.g. "Inside Omni walk's rules: $20.00 budget, $3.00 per run." |
AgentApprovalStatus
auto_approved: inside the rules, so it ran without asking. The rules are the per-run limit, plus the session budget or the campaign's budget when there is one. It is still recorded and shown.pending: over the rules, waiting for a person.approved/denied: a person answered.canceled: withdrawn because the session ended before anyone answered.expired: nobody answered byexpires_at, so it did not run.
AgentPlanStatus
proposed: waiting for a person.approved: a person approved it (session-only). Its rounds are the contract.edited: a newer version replaced it before anyone approved it.withdrawn: the session ended, or the agent withdrew it, before anyone approved it.
AgentShortlistCandidate
One column of the shortlist: a checkpoint of the round's run, as the hub measured it.
| Field | Type | Description |
|---|---|---|
step | integer | |
pick | boolean | The agent's pick (pre-checked); the person changes it. |
verdict | RoundVerdictValue | |
gates | array of RoundGateResult | The round's locked gates at this step, measured. |
gates_passed | integer | |
gates_total | integer | Counted (locked) gates. |
cells_passed | integer | null | The hub's band rule at this step, cells passing (the 13-cell strip's number). |
cells_total | integer | null | |
cells | array of CheckpointGateCell | |
failing_cells | array of string | The cells that FAIL the band at this step (the "two cells that mattered"). |
seeds | integer | null | Seeds behind the measurement (5 while training, 20 after the band scan). |
source | string | null | |
mean_reward | number | null | The metrics line at this step ( |
noise_std | number | null | |
lineage | string | null | E.g. "laika-omni-c2-700 · 700 → 1600, 900 into R4". |
cost_to_step_usd | number | null | What the run had cost when this checkpoint was published ( |
poster_url | string (uri) | null (uri) | |
gate_rollout_id | string | null | |
render | AgentRenderRef | null |
AgentShortlistControl
The control beside the candidates: the checkpoint the round started from, judged by the same locked gates.
| Field | Type | Description |
|---|---|---|
role | RoundControlRole | |
label | string | null | |
run_id | string | null | |
step | integer | null | |
model_repo | string | null | |
status | RoundControlStatus | |
verdict | RoundVerdictValue | null | |
gates | array of RoundGateResult | |
gates_passed | integer | null | |
gates_total | integer | null | |
cells_passed | integer | null | |
cells_total | integer | null | |
cells | array of CheckpointGateCell | |
mean_reward | number | null |
AgentDeviceRef
| Field | Type | Description |
|---|---|---|
id | Id | |
name | string |
AgentShortlistFollowup
What happens after a person shortlists. The hub does these steps itself. No AI model does them. First comes the 20-seed scan on the picks, or the round's own band scan when it already measured them. Then the hub files one device consent request per pick that still passes the round's locked gates. Each request carries the person's note as its reason.
| Field | Type | Description |
|---|---|---|
state | string | |
scan_id | string | null | |
reused_round_scan | boolean | True when the round's band scan already measured the picks, so no new scan was queued. |
results | array of AgentShortlistResult | |
error | string | null | |
updated_at | string (date-time) | null (date-time) |
AgentRenderRef
The latest three-view render of a candidate's gate (renderRollout), with its videos once it finished.
| Field | Type | Description |
|---|---|---|
rollout_id | Id | |
status | JobStatus | |
matches | boolean | null |
|
claimed_at | string (date-time) | null (date-time) | |
finished_at | string (date-time) | null (date-time) | |
video_urls | map of string (uri) | Presigned 1-hour GETs of the rendered cell's views ( |
expected_s | number | null | How long a render takes on this render's executor, measured on this hub. See |
expected_samples | integer | How many finished renders |
AgentShortlistResult
| Field | Type | Description |
|---|---|---|
step | integer | |
state | string |
|
verdict | RoundVerdictValue | null | The step's verdict by the round's locked gates after the scan. |
request_id | string | null | |
consent_path | string | null | |
reason | string | null |