All pages
Command line
o41-artifacts does everything the app does. Add --json to any command for
machine-readable output.
Agents: run o41-artifacts docs search "<question>" to find the page that
answers a question.
curl -fsSL https://artifacts.041.io/install.sh | sh
o41-artifacts login # device login in the browser
o41-artifacts org list # your organizations
o41-artifacts org use <id> # the one later commands act inThe installer verifies SHA-256 and installs in ~/.local/bin on Linux and
macOS, x64 and arm64, without Node.js or npm. Set O41_ARTIFACTS_INSTALL_DIR to
choose another directory and put it first on PATH. If you used npm, remove its
copy with npm uninstall -g @o41/artifacts so it does not hide this one.
Update
Run o41-artifacts update --check to check the release, or
o41-artifacts update to install it after SHA-256 verification. Standalone
installations check in the background at most once every six hours. Later
commands use the new binary; running commands keep their version. Set
O41_AUTO_UPDATE=0 for all 041 CLIs, or O41_ARTIFACTS_AUTO_UPDATE=0 for
Artifacts, to keep a fixed version. CI and npm installations skip automatic
updates. Failed downloads leave the installed binary in place.
Commands
| Command | Does |
|---|---|
login, logout | Sign in with the device flow; tokens are stored on disk and refreshed |
org | List organizations, choose the active one |
connections | Connect AWS, GCP or Azure: print the setup script, then complete it with its identifiers |
locations | List, create a bucket, add an S3 endpoint, set the fallback or a cloud's default, retire |
api-keys | List, create (secret printed once), revoke |
ls [prefix] | Artifacts under a prefix |
versions <artifact> | An artifact's committed versions |
url <full path> | Signed download URLs for a version's files; latest works as the version |
get <full path> <dir> | Download a version's files |
put <full path> <files…> | Write a version from local files |
usage | Writes by place and match, cross-cloud reads |
docs search <question> | Docs pages that answer a question, best first; --limit up to 20; needs no sign-in |
feedback <message> | Send a bug report (--bug) or an idea to the team; needs no sign-in |
o41-artifacts <command> --help lists flags.
Credentials
| Variable | Effect |
|---|---|
| none | Uses your login |
O41_ARTIFACTS_API_KEY | Uses an organization API key; for boxes without a browser |
O41_ARTIFACTS_URL | Points at another deployment |
O41_ARTIFACTS_ANALYTICS | off, 0 or false stops the usage report below |
DO_NOT_TRACK | Any value but empty, 0 or false stops it too |
Usage analytics
After each command the CLI sends one usage report to the deployment it talks to:
the command path, such as o41-artifacts put, never an argument, a path or a
value; whether it succeeded, and its error code if not; how long it took; the
CLI version, operating system and architecture; whether CI is set; whether a
coding agent runs it; and whether standard output is a terminal. The API records
it for the user and organization of the credential the command uses, and without
one for nobody. The report waits at most 1.5 seconds, and a failed report never
changes the command's output or exit code.
Delete older checkpoints
Preview an explicit older version, then delete it:
o41-artifacts delete experiments/hoonshot/1234 step-00000500 --dry-run
o41-artifacts delete experiments/hoonshot/1234 step-00000500A full o41://<artifact>/<version> path also works. The latest version is
protected. Deletion removes the version from the catalog and queues its files
and manifest for removal from the bucket. Repeat the command to check cleanup:
pending: false in --json output means bucket deletion completed. Bucket
failures retry automatically. Cloud retention policies can delay storage
savings. Deleting a version also makes references to that version stop
resolving.