Run in production
A production run executes a linked agent’s ready cloud build. It runs real author code, uses live ctx.sapiom capabilities instead of local stubs, and participates in cloud usage metering.
You need a signed-in Sapiom account and a linked agent with a ready build. A definition ID alone is not enough: it can survive a failed first deploy without a runnable artifact.
Start the run
Section titled “Start the run”Select the intended agent project and choose Prod Run. The action is enabled only when Studio can confirm a ready build and authentication. It is a direct product action: it does not prompt Claude or use Claude credits.
The current Studio button sends {} as caller input. Use schema defaults for a no-input happy path, or use Claude Code or the dashboard when you need custom input.
Saved non-secret defaults are merged before that {}. See Configure authentication and runtime inputs for precedence and the trigger paths that apply them.
Ask Claude to call sapiom_dev_agents_run with the linked project and the entry input:
{ "dir": "/absolute/path/to/hello-agent", "input": { "name": "Docs" }}An omitted input becomes {}. The entry step’s schema parses the effective input in the cloud before author code receives it.
Open the deployed agent and choose Run once. The dashboard derives fields from the active entry-step input schema and offers a raw-JSON editor when the contract cannot be represented as simple fields. Submit the form to start the run and open its inspector.
The start request returns after enqueueing the execution. Its durable handoff is:
{ "executionId": "<execution-id>" }This response is not the terminal agent output. Preserve the execution ID and inspect the run.
What changes from Local Run
Section titled “What changes from Local Run”-
The cloud uses the deployed artifact
Section titled “The cloud uses the deployed artifact”Production does not execute the mutable checkout on your machine. When the run starts, it records the exact
buildRunIdselected for that definition. A later deploy or version-pin change affects future runs, not the in-flight run. -
Capability calls are live
Section titled “Capability calls are live”Calls through
ctx.sapiom.*reach Sapiom services instead of.sapiom-dev/stubs.json. Directfetch, third-party SDKs, and other author effects are also real inside the cloud runtime. -
Usage is metered
Section titled “Usage is metered”The run consumes the agent-run and runtime meters that apply to the account. Live capability calls can add their own usage. A successful HTTP start only proves the run was enqueued; read the terminal status and evidence before treating the outcome as successful.
The dogfood journey for these guides deployed a two-step agent from a working tree with an uncommitted marker and ran it with { "name": "Docs" }. The completed cloud output included:
{ "done": true, "greeting": "hello from Sapiom, Docs", "deployedFromWorkingTree": true}That marker verified both boundaries at once: deploy used current local source, and the production run used the resulting immutable build rather than rereading the checkout.
© 2026 Sapiom, Inc.