@amika/sdk:
undefined. Required fields that the server can leave
empty are typed T | null. Your editor shows each field’s documentation on
hover.
Rigs
-
repoUrlis a clone URL. The SDK does not detect a local Git checkout. -
envVarssets literal environment variables.secretEnvVarsmaps an environment variable name to a stored secret name. See Inject credentials. -
snapshottakes a snapshot slug to boot from.nullopts out of the repository’s default snapshot. Omit it to keep the default. -
agentCredentialspicks which stored agent credentials the rig receives. Omitting it injects none. -
githubAuthModepicks how the rig authenticates to GitHub, such asapp_tokenorpat. Omit it to use the server default. -
hostIdruns the rig on one of your organization’s own hosts. Get the ID fromamika host get <hostname>. An empty string throws. WithhostId:sizenames one of that host’s own sizes;- the server rejects
provider,autoStopInterval, andautoDeleteInterval; - a
snapshotmust have been taken on that same host.
{ kind }alone lets the server pick: the repository default, then your OAuth credential, then your API key.namepicks a stored credential by name.typepicks your single credential of that type.none: trueinjects nothing for that kind.
- Use
rig.wait()rather than readingstatusorstateyourself. It checks both the lifecycle status andsetupStatus. servicesis a short summary. Useclient.services.list()for full service records.secretNamesandmountedSecretsdescribe injected secrets. Values are never returned.resolvedAgentCredentialsreports, per requested kind, whether a credential was injected and why not if it was skipped.
Agent sessions
AgentSendResponse is the same type as AgentSessionSendResponse. Claude
reports usage; Codex currently doesn’t.
agentSessions.get() returns an AgentSession: an AgentSessionDetail with
bound refresh(), send(), and sendStream() methods.
Snapshots
Services
Secrets
Agent credentials
Repositories
Deprecated aliases
Sandbox-named types such asRemoteSandbox, CreateSandboxRequest,
SandboxSnapshot, and SandboxServiceResource remain as deprecated aliases
of the rig-named types. Some rig types also carry legacy field spellings, such
as providerSandboxId next to providerRigId, with the same value.