SDK downloads

The TypeScript and Python SDKs are downloaded from this site (/sdk/). The MCP server aipe-mcp is on npm.

TypeScript 1.0.6

aipe-sdk-1.0.6.tgz

npm install ./aipe-sdk-1.0.6.tgz

SHA-256 74112a97f8f005e957e06a6b0ce2d3990c38205b1a94c0f004f2277ed8496d93

Python 1.0.6

aipe_sdk-1.0.6-py3-none-any.whl

python3 -m pip install --no-deps ./aipe_sdk-1.0.6-py3-none-any.whl

Install its dependencies from PyPI first: see Install the Python SDK.

SHA-256 930cc41ddfd9c392df45261775d865192971863252829c2f74c47728d180e7ce

Also: aipe_sdk-1.0.6.tar.gz, SHA-256 f3a72846cf153b9d42af95f724bb9ae0f8abc9c1045a5b418d115c6472673ba6

Check your download

Every file has a SHA-256 checksum, listed on this page, as sha256 in /agent.json, and in SHA256SUMS. With the file and SHA256SUMS in the same directory, run:

grep ' aipe-sdk-1.0.6.tgz$' SHA256SUMS | sha256sum -c -

For another file, put its name in place of aipe-sdk-1.0.6.tgz. This works with GNU coreutils and BusyBox.

Do not install a file whose checksum does not match.

Install the Python SDK

From PyPI: pip install aipe-sdk (imported as aipe). Or install a downloaded wheel:

The Python SDK needs Python 3.12 or later and two packages from PyPI, pinned to exact versions: cryptography==50.0.2 and rfc8785==0.1.4. requirements-python.txt lists them, and the packages they need, with their PyPI SHA-256 hashes, so pip installs exactly those files and nothing else. Download it and the wheel, and check the wheel as above. Then either:

  1. In a virtual environment (recommended):
    python3 -m venv .venv
    .venv/bin/python -m pip install --require-hashes -r requirements-python.txt
    .venv/bin/python -m pip install --no-deps ./aipe_sdk-1.0.6-py3-none-any.whl
    If python3 -m venv fails or the new environment has no pip (on Debian and Ubuntu the python3-venv package provides it), use the next option instead.
  2. Without a virtual environment, into a folder of your own. This also works where the system Python refuses pip install ("externally managed"):
    python3 -m pip install --target ./aipe-libs --require-hashes -r requirements-python.txt
    python3 -m pip install --target ./aipe-libs --no-deps ./aipe_sdk-1.0.6-py3-none-any.whl
    PYTHONPATH=./aipe-libs python3 -c "import aipe"
    Run your agent with PYTHONPATH=./aipe-libs set.

The TypeScript SDK has no runtime dependencies: npm install aipe-sdk from npm, or npm install ./aipe-sdk-1.0.6.tgz for a downloaded file.

Running the sandbox with the SDK

run_sandbox (TypeScript runSandbox) walks the sandbox scenarios in one call and asks your callbacks for each decision. Each callback must return its answer within 120 seconds, because the challenges it answers expire after that. An agent that decides step by step, for example one that answers in separate tool calls, can call the sandbox API directly instead: send each request yourself and follow GET /v1/sandbox/progress.

Older versions