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 TUI (default)

Run weio with no arguments to drop into an interactive coding session — like a local pair-programmer in your terminal:

cd my-project
weio
weio › add a /health route to app.py that returns {"ok": true}

weio: I'll add a health check route…
  ● edit app.py
  --- a/app.py
  +++ b/app.py
  @@ …
  Apply 1 change(s)? [y/N] y
  ✓ applied 1 change(s). (/undo to revert)

Slash commands: /add <file>, /drop <file>, /files, /auto (auto-apply), /model <id>, /undo, /clear, /cwd, /help, /exit. Arrow-up recalls history. Files you mention or /add are kept in context and re-read each turn.

One-shot & other commands

# Run a single coding task non-interactively (reads & edits files):
weio "add error handling to the fetch() in api.py"

# Add specific files to the context:
weio code "refactor to async" -f server.py -f db.py

# One-shot question (no file edits):
weio ask "what does a 502 from nginx usually mean?"

# Interactive chat:
weio chat

# Check connectivity and your key:
weio ping

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.4.0.tar.gz (19.4 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.4.0-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: weio_cli-0.4.0.tar.gz
  • Upload date:
  • Size: 19.4 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.4.0.tar.gz
Algorithm Hash digest
SHA256 7f4ed0afdf15ec53ef0c45054f4b502b3168f6e93163c6a093cb2e2c0e4b913e
MD5 dbcd209f10876533d0e225714766c8de
BLAKE2b-256 c8d6e9a4f562f48972989833fef145d296dee147cc82001a7270cfc7229d4266

See more details on using hashes here.

File details

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

File metadata

  • Download URL: weio_cli-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 21.0 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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5ac4a0681fa472c8013bd266df2e4d022469d624e4fe2aef742fd7d94fd02e88
MD5 2c7e7c6fcf1bd7500ef217a3627d640e
BLAKE2b-256 2c74621928bd456999a7612d4256b5cfdf037de4993232035cce5e8dd4c9abc0

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