opschain agent sdk export
packs:agents
Writes the SDK this binary embeds into a directory, for a repository that
already exists: the source files, the README, the packaging file, a
VERSION holding the SDK version and a MANIFEST.sha256 of every file.
Offline.
opschain agent sdk export --lang python <dir> [--force]
| Language | Files |
|---|---|
python | opschain_agent.py and every other runtime module, the adapter modules, README.md, pyproject.toml (opschain-agent-sdk at the SDK version, the claude extra pinned to the tested claude-agent-sdk), VERSION, MANIFEST.sha256. |
The native SDK is Python; any other --lang is refused. An agent written
in any other language runs as a separate process behind the sidecar,
opschain agent (opschain docs cli/agent).
Put the directory on the interpreter's path
and import opschain_agent; check the copy later with opschain agent sdk version (opschain docs cli/agent-sdk-version), or with sha256sum -c MANIFEST.sha256 inside it.
Flags
| Flag | Meaning |
|---|---|
--lang python | The SDK language (required). |
--force | Write into a non-empty directory (files of the same name are overwritten). |
Exit codes
| Code | Meaning |
|---|---|
| 0 | Exported. |
| 1 | Refused (target directory is not empty: …) or a filesystem error. |
| 2 | Usage error (--lang is required: python, unknown SDK language "<lang>" (the native SDK ships for python only); an agent in any other language runs as a separate process behind the sidecar: …). |
See also
opschain docs cli/agent-sdk-versionopschain docs cli/agent-init— a new agent repository with the SDK managed for you.