Checking the points left: the Plan tab, GET /v1/ai/balance and aio balance

Coding with AICoding Plan·· 9 views· 3 min read

There are several ways to see how many Coding Plan points are left: in the Plan tab, through the API, in the terminal and inside the agent. None of them spends points.

In the Plan tab

With an active plan, the Plan tab shows two bars, This week and This month. Each one shows the points used and the total, how many are left, the percentage and when it resets. When a limit runs out, the bar says Used up. Times show in local time, and the tab says which time zone it uses. Above them is the date the plan renews.

Through the API: GET /v1/ai/balance

You need a key with ai:read. On Linux and macOS, and then in Windows PowerShell:

curl "https://api.interweb.co.mz/v1/ai/balance" -H "Authorization: Bearer $INTERWEB_API_KEY"

curl.exe "https://api.interweb.co.mz/v1/ai/balance" -H "Authorization: Bearer $env:INTERWEB_API_KEY"

The answer has the credits and, with a plan, the subscription object:

{
"data": {
"credits": 1250.5,
"currency": "credits",
"subscription": {
"plan": "plus",
"plan_name": "Plus",
"status": "active",
"weekly_remaining": 61250000,
"monthly_remaining": 143750000,
"weekly_resets_at": "2026-11-23T00:00:00+00:00",
"monthly_resets_at": "2026-12-10T00:00:00+00:00",
"fallback_to_credits": true
}
}
}

Field What it says
plan and plan_name The plan code and name.
status The plan status. Only an active plan spends points.
weekly_remaining and monthly_remaining The points left this week and in this monthly cycle.
weekly_resets_at and monthly_resets_at When the weekly and monthly points come back, in ISO 8601.
fallback_to_credits true if requests carry on with credits when the points run out.

Without a plan, subscription does not come.

In the terminal: aio balance

aio balance
aio balance --json

Shows your credits and, with a plan, the points left this week and this month, the reset dates and whether credits are used when the points run out. With --json, the answer can feed another program.

Inside the agent

With the MCP server set up, ask the agent how many points you have left. It uses the get_balance tool, which costs nothing.

In a program of your own, read weekly_remaining before a big task and warn when it is low.

Want to keep track of the points you spend coding? Visit the Coding with AI page.

See Coding with AI

SEE ALSO

Weekly points in the Coding Plan: they come back every Monday at 00:00 UTC

Monthly points and renewal: which Coding Plan limit counts first

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

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

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.