Skip to main content

agi-diy

Python client for api.agi.diy. Lease a VLA policy, run it over the LeRobot remote-inference protocol (zenoh). One call = one token per action in the chunk.

pip install "agi-diy[lerobot]"
agi login
agi run act/so101 --probe
import agi

with agi.Policy("act/so101") as session:
    actions = session.predict(
        {"observation.state": state, "observation.images.front": frame},
        task="pick up the cube",
    )  # np.ndarray [n_action_steps, dof]

The key comes from AGI_API_KEY or ~/.agi/credentials (AGI_API_KEY=agi_sk_live_…).

Surface

agi.Policy("act/so101")          # POST /v1/sessions → lease; raises agi.NoSlots / agi.InsufficientCredits / agi.AuthError
session.endpoint                 # "ws/zenoh.api.agi.diy:80"
session.deployment               # "d_…"
session.url                      # "zenoh+ws://zenoh.api.agi.diy:80/d_…"
session.connect()                # admitted lerobot.remote_inference.RemoteClient
session.predict(obs, task="…")   # one chunk, np.ndarray
session.policy()                 # strands-robots policy: arm.run(session.policy(), seconds=30)
session.rollout_args()           # flags for lerobot-rollout
session.close()                  # DELETE /v1/sessions/:id (also a context manager)
agi.models(); agi.me(); agi.usage(); agi.sessions(); agi.health()

CLI: agi login · agi models · agi session act/so101 · agi run act/so101 --probe · agi rollout act/so101 -- --robot.type=so101_follower … · agi usage.

connect(), predict() and rollout need pip install "agi-diy[lerobot]". The REST part has no dependencies.

Errors subclass agi.Error with .error, .status, .retry_after_s.

Metadata

Release files for agi-diy 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agi-diy 0.1.0
File Size Uploaded Provenance
agi_diy-0.1.0.tar.gz 12.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for agi-diy 0.1.0
File Interpreter ABI Platform
agi_diy-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 22.5 kB

Release files / agi_diy-0.1.0.tar.gz

Download URL agi_diy-0.1.0.tar.gz
Size 12.3 kB
Tags Source
SHA-256 checksum
How to use checksums
4e1f1e6f44b38fd1a035b2bb90520904d99d1ff2a07df2298b8f2ff3bb19ae4e
BLAKE2b-256 checksum
How to use checksums
32468e623733ef4435c263d4969254f4bb7daf6181f736f5dea2f784ef9f3f65
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.11

Release files / agi_diy-0.1.0-py3-none-any.whl

Download URL agi_diy-0.1.0-py3-none-any.whl
Size 10.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3c57e9fd49d751e580f687247683920fb031b4e86a5e6749b3f9483283d34e93
BLAKE2b-256 checksum
How to use checksums
63ea199923e5f3300c848d4fbedb02a8056f7d251967a83e666763991f4b890a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.11

Security for agi-diy 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page