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:
AGENTVFS_BINenvironment variable (explicit override)avfsalready on$PATH(e.g. installed viacargo install agentvfs, theinstall.shscript, ornpm install -g agentvfs-cli)- Cached binary at
$XDG_CACHE_HOME/agentvfs/<version>/avfs(or~/.cache/agentvfs/<version>/avfs) - 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
Metadata
Release files for agentvfs-cli 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| agentvfs_cli-0.1.8.tar.gz | 6.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agentvfs_cli-0.1.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.6 kB
Release files / agentvfs_cli-0.1.8.tar.gz
| Download URL | agentvfs_cli-0.1.8.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a7e1bfd84da4064fb937e5752f5c5f36ecef212e400073f67bf53d3773d0b3e5
|
|
BLAKE2b-256 checksum How to use checksums |
0f31111c6035911d79fe5c29d8f8f9a868c9730ca6e905414918247e27b8dce5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / agentvfs_cli-0.1.8-py3-none-any.whl
| Download URL | agentvfs_cli-0.1.8-py3-none-any.whl |
|---|---|
| Size | 7.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eabe27ab8733101b49b98ec1565402397df5cba87013073b7641f96e7565f3fa
|
|
BLAKE2b-256 checksum How to use checksums |
5b8d0fb9fdd777d998473f4e316432006adb7021e52556763f2346cc1f9a138d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|