Skip to main content

Weio — an agentic coding assistant that routes inference through your Weio account.

Project description

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.

Prefer to paste a key yourself? Generate one in Settings → API & CLI on weio.ai and:

weio login --no-browser     # paste your weio_sk_… key
# or, per session:
export WEIO_API_KEY="weio_sk_…"

Check what you're using:

weio usage            # tier, tokens used today, remaining, reset time

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 ping        # connectivity + key check

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 WEIO_API_KEY ~/.weio/config.json
API base --base WEIO_BASE ~/.weio/config.json
Model --model

Self-hosted / LAN gateway? Point at it with --base http://HOST:8901/v1.

Output is billed against your Weio account usage.

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

weio_cli-0.8.1.tar.gz (29.2 kB view details)

Uploaded Source

Built Distribution

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

weio_cli-0.8.1-py3-none-any.whl (30.1 kB view details)

Uploaded Python 3

File details

Details for the file weio_cli-0.8.1.tar.gz.

File metadata

  • Download URL: weio_cli-0.8.1.tar.gz
  • Upload date:
  • Size: 29.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for weio_cli-0.8.1.tar.gz
Algorithm Hash digest
SHA256 a931875f555ccd97a43f293a99b45eaa4a04cbe9bf6b04f34b93280002e24df5
MD5 0246bb48d9480a97a6b416dae5de7c39
BLAKE2b-256 87850d079d1b3bd97bae302348fe9f7533258089e1556a95735a02c2ddace68d

See more details on using hashes here.

File details

Details for the file weio_cli-0.8.1-py3-none-any.whl.

File metadata

  • Download URL: weio_cli-0.8.1-py3-none-any.whl
  • Upload date:
  • Size: 30.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for weio_cli-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e0fd3599990e3c228fbd9aa6efe14b26c1f5d2e3ae130461a2d3da323a785d31
MD5 6fa023f3bdd88a1d5cc0c880879a578b
BLAKE2b-256 230a5d0648d6cfb50a524fc2357cb5948d3d3409058f3c6c5bdda9296ff3f112

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