Skip to main content

Workspace runtime and execution boundary for AI agents

Project description

agentvfs-cli

Python wrapper for the AgentVFS (avfs) CLI.

The PyPI distribution is agentvfs-cli; the importable module is still agentvfs (from agentvfs import AVFS).

Install

pip install agentvfs-cli

Native binary resolution

Calling agentvfs ... (or using the Python AVFS client, which shells out to avfs) resolves the native binary in this order:

  1. AGENTVFS_BIN environment variable (explicit override)
  2. avfs already on $PATH (e.g. installed via cargo install agentvfs, the install.sh script, or npm install -g agentvfs-cli)
  3. Cached binary at $XDG_CACHE_HOME/agentvfs/<version>/avfs (or ~/.cache/agentvfs/<version>/avfs)
  4. Lazy first-run download — if no binary is found, the matching platform archive is fetched from the GitHub release for this package's version, extracted into the cache, and then exec'd. Subsequent invocations reuse the cached binary instantly.

This means pip install agentvfs-cli && agentvfs --help works out of the box on any supported platform — no extra install step required.

Cache management

The cache is keyed by package version, so pip install -U agentvfs-cli automatically triggers a fresh download for the new release. Older version directories sit alongside (a few MB each); clean them with:

rm -rf ~/.cache/agentvfs

To pin a specific binary path (e.g. a locally-built dev avfs):

export AGENTVFS_BIN=/path/to/avfs
agentvfs --version

Supported platforms

Linux x86_64 / aarch64, macOS x86_64 / Apple Silicon, Windows x86_64. Requests on other platforms fail at resolve time with a clear error and a pointer to the GitHub releases page.

Network-restricted environments

If the install host has no internet egress, install the avfs binary out of band (e.g. unpack a release tarball into /usr/local/bin) and the PATH lookup in step 2 will pick it up.

Usage

from agentvfs import AVFS

avfs = AVFS("myproject")
avfs.mkdir("/src")
avfs.write("/src/main.py", "print('hello')")
result = avfs.proxy_exec("python", "/src/main.py")
print(result["stdout"])

API

  • Vaults: create_vault, use_vault, fork_vault, list_vaults
  • Filesystem: mkdir, write, cat, ls, rm, cp, mv, tree
  • Proxy: proxy_exec
  • Checkpoints: checkpoint_save, checkpoint_restore, checkpoint_list
  • Search: grep, search
  • Maintenance: stats, gc, compact

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentvfs_cli-0.1.8.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentvfs_cli-0.1.8-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file agentvfs_cli-0.1.8.tar.gz.

File metadata

  • Download URL: agentvfs_cli-0.1.8.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.14 {"installer":{"name":"uv","version":"0.9.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for agentvfs_cli-0.1.8.tar.gz
Algorithm Hash digest
SHA256 a7e1bfd84da4064fb937e5752f5c5f36ecef212e400073f67bf53d3773d0b3e5
MD5 085d7e7e6507d85b1d0960907833e9e0
BLAKE2b-256 0f31111c6035911d79fe5c29d8f8f9a868c9730ca6e905414918247e27b8dce5

See more details on using hashes here.

File details

Details for the file agentvfs_cli-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: agentvfs_cli-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.14 {"installer":{"name":"uv","version":"0.9.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for agentvfs_cli-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 eabe27ab8733101b49b98ec1565402397df5cba87013073b7641f96e7565f3fa
MD5 8de9cd93bc6ca86a6f55952d4bc38ec0
BLAKE2b-256 5b8d0fb9fdd777d998473f4e316432006adb7021e52556763f2346cc1f9a138d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page