weio-cli
An agentic coding assistant that runs on your machine and routes inference through your Weio account.
Install
pip install weio-cli # or: pipx install weio-cli
Requires Python 3.9+.
Authenticate
weio login # opens your browser, sign in (incl. Google), key is created automatically
weio login starts a one-time local handshake, opens weio.ai in your browser to
sign in, mints an API key for this device, and saves it to ~/.weio/config.json.
No copy-paste. This is the default path for Free, Starter, and Pro accounts.
(Free accounts don't have CLI access yet — weio login will point you at
Plans if your account isn't on a paid tier.)
On a Teams (or Enterprise) account, prefer a dashboard-issued API key instead: generate one in Settings → API & CLI on weio.ai, then either
weio login --api-key weio_sk_… # save it, replacing any existing credential
# or, per session / CI, skip `weio login` entirely:
export WEIO_API_KEY="weio_sk_…"
Dashboard keys are the recommended path for CI, headless boxes, and anywhere
you want to rotate or scope access without re-running a browser flow — revoke
one and issue a new one any time from Settings, no CLI changes needed. If you
run weio login via the browser on a Teams account, the CLI will print a
one-line reminder of this; it's just a nudge, browser sign-in still works fine.
Re-running weio login (either path) cleanly replaces whatever credential was
saved before. If it signs you into a different account than last time, it says
so: Was signed in as old@example.com, now new@example.com.
weio logout # clears the saved credential; safe to run if already logged out
weio whoami # account, org (if any), plan, key type, gateway, and validity
weio usage # tier, tokens used today, remaining, reset time
weio whoami does one cheap authenticated request to confirm the key still
works, and reports whether it's a browser-minted session key or a dashboard
API key — useful when you're not sure which credential is active (--key,
WEIO_API_KEY, or the saved file, in that resolution order). weio logout
only clears credential fields from ~/.weio/config.json; other settings (like
a custom --base) are left alone. It can't unset WEIO_API_KEY in your shell
environment — it'll tell you if that's still active and taking precedence.
Use
Interactive agent (default)
Run weio with no arguments to start an autonomous coding agent in your terminal —
like Claude Code / Codex. It reads files, searches, edits, and runs commands to
complete your task, showing each step:
cd my-project
weio
weio › add a /health route to app.py and run the tests
● Let me look at the app first.
📖 read_file app.py
● Adding the route.
✎ edit_file app.py
│ + @app.get("/health")
│ + def health(): return {"ok": True}
apply edit_file to app.py? [y/N] y
● Verifying.
❯ run_command pytest -q
│ exit=0 … 5 passed
✔ Added /health and confirmed tests pass.
The agent uses tools: read_file, list_dir, search, edit_file, write_file, run_command. File paths are confined to the project directory.
Slash commands: /model <id>, /approval <mode>, /steps <n>, /settings,
/undo, /clear, /cwd, /help, /exit.
Approval modes
Control how much the agent does without asking (/approval or weio config approval):
| Mode | Edits | Shell commands |
|---|---|---|
suggest (default) |
ask each time | ask each time |
auto-edit |
auto-apply | ask each time |
full-auto |
auto-apply | auto-run |
Settings
weio config # show all settings
weio config approval auto-edit # set a value
weio config model pro # auto | low | mid | pro
weio config max_steps 40
Settings live in ~/.weio/settings.json. The agent uses the most capable model
your plan allows.
One-shot & other commands
# Run a coding task non-interactively (auto-applies edits; add --auto to also run commands):
weio "add error handling to the fetch() in api.py"
weio code "refactor db.py to async" --auto
# Quick question (no file edits):
weio ask "what does a 502 from nginx usually mean?"
weio chat # plain interactive chat
weio usage # tokens used / limits
weio whoami # account, plan, key type, gateway, validity
weio ping # connectivity + key check
weio logout # clear the saved credential
Edits are shown as a diff and require confirmation before anything is written
(use -y/--yes to apply automatically). New files are created as needed.
Updating
weio-cli checks PyPI once a day (fail-silent) and prints a one-line notice when a newer version is available. To upgrade:
weio update # upgrades in place via pip
# or
pip install -U weio-cli
Disable the check with WEIO_NO_UPDATE_CHECK=1.
Configuration
| Setting | Flag | Env | Config file |
|---|---|---|---|
| API key | --key (any command) / --api-key (weio login only) |
WEIO_API_KEY |
~/.weio/config.json |
| API base | --base |
WEIO_BASE |
~/.weio/config.json |
| Model | --model |
— | — |
Resolution order for the key (first hit wins): --key/--api-key flag →
WEIO_API_KEY env → the key saved by weio login → none (commands that need
one will ask you to log in). weio whoami reports which of these is active.
Using a different OpenAI-compatible endpoint (e.g. a gateway on your LAN)? Point at it with --base http://HOST:8901/v1.
Output is billed against your Weio account usage.
Metadata
Release files for weio-cli 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| weio_cli-1.0.1.tar.gz | 52.4 kB | Without provenance | Details for weio_cli-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| weio_cli-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for weio_cli-1.0.1-py3-none-any.whl |
Total release size: 98.6 kB
Release files / weio_cli-1.0.1.tar.gz
| Download URL | weio_cli-1.0.1.tar.gz |
|---|---|
| Size | 52.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
67baf07955ac5d908a95420f916d62058df8715559220b0f996ca577f521718b
|
|
BLAKE2b-256 checksum How to use checksums |
9f4b1c30558b823ae096ac43b05ddaf17e2123c4a51b21fc9e0ca67f1b6bc3c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / weio_cli-1.0.1-py3-none-any.whl
| Download URL | weio_cli-1.0.1-py3-none-any.whl |
|---|---|
| Size | 46.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2137675275e86286155444c79cba76ecbdc8b4dd71b48533e7ccfdd8f37d05a9
|
|
BLAKE2b-256 checksum How to use checksums |
f2ae4ace2d9fc8c622699f301a34c381e81b6ba235a01697ca4803d96f097515
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for weio-cli 1.0.1
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.