The aio command: AI in your terminal, installed in one line

All in One AI·· 1 view· 4 min read

aio is the All in One AI terminal command. It chats with the models, creates images, video and voice, shows your balance and sets up the MCP server in your tools. You do not need to write code. The command is free: you only pay for the AI you use, at the same prices as the API.

Installing

You need Node.js 18 or newer (check with node --version). On Linux and macOS:

curl -fsSL https://docs.interweb.co.mz/cli/install.sh | sh

On Windows, in PowerShell:

irm https://docs.interweb.co.mz/cli/install.ps1 | iex

The installer checks your Node.js version, downloads aio over https, verifies the SHA256 and installs it in ~/.local/bin/aio. It never asks for sudo. On Windows it goes to %LOCALAPPDATA%\aio, without administrator rights. To update, run the same command again. Installing with npm and uninstalling are on the CLI page of the docs.

Signing in with your key

aio auth login

aio asks for the key (prod_... or sandbox_...) without showing it, checks it and stores it in ~/.config/aio/config.json, which only your user can read. The key needs ai:read and ai:write and is created in the API Center. aio auth status shows the key in use, hidden, and aio auth logout deletes it. On a server or in a pipeline, use the AIO_API_KEY variable, which takes priority.

The commands

Command What it does
aio balance Your AI credits and, with a Coding Plan, the points left for the week and the month.
aio models --type image The models of one type, with the price in credits. Search with --search.
aio chat "question" Chats with a model. With no question, it opens a conversation in the terminal.
aio generate image "description" Creates and downloads an image. Also video and audio.
aio status <id> --download The state of a generation, and its files once it is ready.
aio mcp install claude The MCP server setup for Claude Code. Also codex and cursor.

aio chat "Explain what an MX DNS record is"
aio generate image "a lighthouse at sunset" --opt size=1024x1024 --out images/
cat request.txt | aio chat

Every command accepts --json, to use the answer in another program, and --help. aio balance, aio models, aio model and aio status spend no credits.

Testing without spending

With a sandbox_ key, aio chat always answers "Resposta de teste (sandbox)." and a generation is ready at once, with a sample file and 0 credits. The model list, the prices and the balance are real. Use it to try the commands and your scripts before you sign in with the prod_ key.

If you see a message saying aio needs Node.js 18 or newer, update Node.js and run the command again. If a generation does not finish within the waiting time, it keeps running on the server: fetch it later with aio status <id> --download.
aio exits with code 0 when all goes well, 1 on an error and 2 when the command is mistyped. Handy in scripts. Errors include the code and the request id, to give to support.

Want AI in your terminal with no setup? Visit the Coding with AI page.

See Coding with AI

SEE ALSO

The All in One AI MCP server: images, video and voice inside Claude Code, Codex and ChatGPT

Coding Plan: which plan to choose, what it costs and how to subscribe

Using Claude Code with All in One AI: the variables, the model and common errors

Testing All in One AI in the Sandbox at no cost: what each answer looks like

Coding with AI in All in One AI

RECOMMENDED PRODUCT

Web hosting with cPanel

Domain and SSL included, daily backups and the panel you already know. from $5.36/mo (3-year plan, with coupon)

See plans
Was this answer helpful? Your answer helps us improve this article.