Developer tools
NoGuard CLI
Coming soon. Preview the planned installation, browser sign-in, and terminal workflow below. The CLI is designed to use the same account and credits as your web chat.
Planned installation
The NoGuard CLI runs on Node.js 18 or later. Install it globally with npm:
Or with yarn:
Verify it installed:
Sign in with your account
The CLI uses the same account as the website. You sign in through your browser — no passwords are stored on your machine, just a secure token.
- Run the login command$ noguard login
- A browser window opens with a confirmation code. If it doesn't open automatically, copy the URL shown in your terminal.
- Approve the sign-in in your browser. You'll see the eight-letter code — confirm it matches what the CLI shows.
- Done. The CLI prints your email and credit balance. You're ready to chat.
You need a verified email to use the CLI. No paid plan required — the free credits you get on sign-up work here too.
Chat
Start a conversation. Same AI, same persona, same quality — just in your terminal.
Multi-line input
End a line with \\ to continue on the next line, or type """ to start and end a multi-line block — useful for pasting code.
In-chat commands
| Command | What it does |
|---|---|
/clear | Start a new conversation (clears history) |
/credits | Show remaining credits |
/help | Show available commands |
/exit | Leave the chat |
Commands
| Command | Description |
|---|---|
noguard | Start chatting (same as noguard chat) |
noguard chat | Start an interactive chat session |
noguard chat --model X | Chat with a specific model |
noguard login | Sign in with your browser |
noguard logout | Sign out and revoke the token |
noguard me | Show account info and credits |
noguard models | List available models |
noguard usage | Show credit usage (last 30 days) |
noguard usage --days 7 | Usage for a specific period |
noguard config | Show config file location |
Credits
The CLI uses the same credit pool as your web chat. Every message costs credits based on its length and the model used — same pricing either way.
After each reply, the CLI shows how many credits that message cost and your remaining balance. Run noguard me anytime to check.
Out of credits? Top up at noguard.ai/credits — current packs are listed on the pricing page Crypto accepted.
Configuration
The CLI stores its config at ~/.noguard/config.json. It holds your auth token and endpoint — nothing else.
Signing out
noguard logout revokes the token on the server and removes it from your machine. You can also revoke any CLI session from your account settings.
API access
The CLI talks to the same API you can call directly. The base URL is https://noguard.ai/api/v1, and every request carries your token as a Bearer header.
Endpoints
| Method | Path | Description |
|---|---|---|
POST | /api/v1/messages | Send a message, get a reply (or stream) |
GET | /api/v1/me | Account info and credits |
GET | /api/v1/models | Available models |
GET | /api/v1/usage | Credit usage history |
DELETE | /api/v1/token | Revoke your token (sign out) |
Pass "noguard_persona": true in the message body to get the same NoGuard AI personality as the web chat. Without it, you control the system prompt yourself.
Ready to go?
Install the CLI and start chatting in 30 seconds.