Skip to main content
Version: v5.8.1

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]
LanguageFiles
pythonopschain_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​

FlagMeaning
--lang pythonThe SDK language (required).
--forceWrite into a non-empty directory (files of the same name are overwritten).

Exit codes​

CodeMeaning
0Exported.
1Refused (target directory is not empty: …) or a filesystem error.
2Usage 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-version
  • opschain docs cli/agent-init — a new agent repository with the SDK managed for you.