Skip to main content

Weio Coder (weio-ai CLI)

Requests in / Results out. A terminal coding assistant that runs on your machine and routes inference through your Weio account.

Install

pip install weio-ai        # or: pipx install weio-ai

If you installed the previous weio-cli distribution, uninstall it with the same tool before installing weio-ai. Both distributions use the weio command.

Requires Python 3.9+.

Authenticate

Weio Coder is available to signed-in accounts on a paid plan (Lite, Solo or Plus). Sign in with Google at your Weio account and run weio login to connect the CLI. For manual setup, create a revocable API key in Workspace Keys. Check the API documentation for plan access and available endpoints.

weio login                 # get a short code for https://app.weio.ai/cli/device
weio login --no-browser    # or paste a CLI and coding agent key from Workspace Keys
weio whoami

Open the displayed link, enter the short code, and approve the request in a browser signed in with Google. Each code is short-lived and works once. The CLI waits up to 10 minutes for approval. Device sign-in uses the default Weio gateway and creates a revocable key with the chat, documents, and hosted-agent scopes. Hosted-agent runs are currently unavailable. For a custom gateway, paste that gateway's key with weio login --no-browser. For CI, supply WEIO_API_KEY from your secret store. The key is never needed in a command argument.

weio usage             # view usage reported for your account
weio logout            # clears the credential saved by login

Revoke an issued key from Workspace Keys if you no longer need it. Logout does not unset an environment variable set by your shell.

Use

Interactive agent (default)

Run weio with no arguments to start an interactive coding assistant in your terminal. 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 confines its file tools (read_file, list_dir, tree, find, search, git_diff, make_dir, edit_file, write_file, delete_file, move_file) to the project directory. run_command starts shell commands in the project directory with your OS user permissions. Shell commands can access any path those permissions allow.

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 auto           # auto | low | mid | pro
weio config max_steps 40

Settings live in ~/.weio/settings.json. Model selection defaults to auto (server routing). Run weio models to list model IDs available to your signed-in account.

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       # usage reported for your account
weio whoami      # account, plan, key type, gateway, validity
weio ping        # connectivity + key check
weio logout      # clear the saved credential

In interactive mode with the default suggest approval, file edits are shown as a diff and require confirmation. Use /approval auto-edit or --yolo to apply edits automatically. Non-interactive one-shot commands (weio "…" and weio code "…") default to auto-edit and apply file edits without prompting. Add --auto or --yolo to also run shell commands without prompting.

Updating

The 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-ai

Disable the check with WEIO_NO_UPDATE_CHECK=1.

Diagnostics and shell completion

Run weio doctor to check CLI and Python versions, the config directory, API key presence, and proxy and TLS environment settings. Its unauthenticated GET reports the gateway's HTTP status. A response confirms network reachability to the host. Run weio ping to verify your key and the gateway response. Doctor exits with status 1 when the base URL is invalid or the gateway cannot be reached.

Enable completion for your current shell:

  • Bash: source <(weio completion bash)
  • Zsh: autoload -Uz compinit; compinit; source <(weio completion zsh)
  • Fish: weio completion fish | source

To keep completion across sessions, add the relevant command to your shell's startup file after Weio is on your PATH.

Set NO_COLOR=1 for plain output. Weio also omits color when standard output is redirected or TERM=dumb.

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.

Requests count against your Weio account's monthly compute allowance.

Release 1.0.8

Ask and Coder now report an error when the gateway returns an empty completion. Coder stops after that reply. Tool-only replies stay supported.

Release 1.0.7

Added weio doctor for read-only CLI diagnostics and gateway reachability. Added Bash, Zsh, and Fish completion. Updated UTF-8 handling and support for NO_COLOR and TERM=dumb, and clarified CLI documentation and help.

Release 1.0.6

Updated the account sign-in and API key instructions.

Release 1.0.5

API key entry for weio login --no-browser is hidden in a terminal.

Release 1.0.4

The verified install and API-key workflow covers Linux with Python 3.9+. The wheel and source distribution are Python packages. Standalone installers are not available yet. See Weio Coder docs for current setup instructions.

Weio is an AI native company operated by human and AI staff. Human staff oversee AI agent operations.

Metadata

Release files for weio-ai 1.0.8

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

Source distribution (sdist)

Source distribution for weio-ai 1.0.8
File Size Uploaded Provenance Actions
weio_ai-1.0.8.tar.gz 98.1 kB With provenance Details for weio_ai-1.0.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for weio-ai 1.0.8
File Interpreter ABI Platform Actions
weio_ai-1.0.8-py3-none-any.whl Python 3 none any Details for weio_ai-1.0.8-py3-none-any.whl

Total release size: 155.1 kB

Release files / weio_ai-1.0.8.tar.gz

Download URL weio_ai-1.0.8.tar.gz
Size 98.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ef5fdc6a49b5ed1dcb7ddbf23c87b9c93fb2b6a58537343debc19b31447939ff
BLAKE2b-256 checksum
How to use checksums
7b9c42f4782681f20fc714ac21864649011e7740e29e5f2f23dd9a359848416f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.

Transparency log

Release files / weio_ai-1.0.8-py3-none-any.whl

Download URL weio_ai-1.0.8-py3-none-any.whl
Size 57.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
528a6f6140c8405fcbd75af7126c4140c79463bb0975b04584659db0649a0510
BLAKE2b-256 checksum
How to use checksums
a7f7d81accdc680edab9b9a3430da46fe6f855780545b7072de251acb5f89db3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.

Transparency log

Security for weio-ai 1.0.8

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for weio_ai-1.0.8.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.

Transparency log

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