Metadata-Version: 2.4
Name: weio-cli
Version: 0.1.0
Summary: Weio — an agentic coding assistant that routes inference through your Weio account.
Author: We I/O Labs
License: MIT
Project-URL: Homepage, https://weio.ai
Project-URL: Documentation, https://weio.ai/support
Keywords: weio,ai,cli,coding-assistant,llm
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Code Generators
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: httpx>=0.24
Dynamic: license-file

# weio-cli

An agentic coding assistant that runs on your machine and routes inference
through your [Weio](https://weio.ai) account.

## Install

```bash
pip install weio-cli        # or: pipx install weio-cli
```

Requires Python 3.9+.

## Authenticate

Generate an API key in **Settings → API & CLI** on weio.ai, then:

```bash
weio login                  # paste your weio_sk_… key (saved to ~/.weio/config.json)
# or, per-session:
export WEIO_API_KEY="weio_sk_…"
```

## Use

```bash
# Run a coding task in the current directory (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.

## 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.
