https://github.com/priornetwork/prior-cli
Prior Network AI command-line interface
https://github.com/priornetwork/prior-cli
agent ai chatbot cli nodejs prior-network terminal
Last synced: 25 days ago
JSON representation
Prior Network AI command-line interface
- Host: GitHub
- URL: https://github.com/priornetwork/prior-cli
- Owner: PriorNetwork
- License: mit
- Created: 2026-04-06T16:53:13.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2026-06-06T16:57:05.000Z (26 days ago)
- Last Synced: 2026-06-06T18:22:12.331Z (26 days ago)
- Topics: agent, ai, chatbot, cli, nodejs, prior-network, terminal
- Language: JavaScript
- Size: 1.74 MB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Prior CLI
[](https://www.npmjs.com/package/prior-cli)
[](https://www.npmjs.com/package/prior-cli)
[](./LICENSE)
[](https://nodejs.org)
**Prior** is an agentic AI assistant for your terminal — it can write and edit code, search your
codebase, research the web, run commands, generate images, and automate Prior services. Built on
the Prior Network platform.
```
██████╗ ██████╗ ██╗ ██████╗ ██████╗
██╔══██╗██╔══██╗██║██╔═══██╗██╔══██╗
██████╔╝██████╔╝██║██║ ██║██████╔╝
██╔═══╝ ██╔══██╗██║██║ ██║██╔══██╗
██║ ██║ ██║██║╚██████╔╝██║ ██║
╚═╝ ╚═╝ ╚═╝╚═╝ ╚═════╝ ╚═╝ ╚═╝
```
## Install
**Windows — no Node.js needed:** [download `prior.exe`](https://github.com/PriorNetwork/prior-cli/releases/latest/download/prior.exe) from the latest release and run it.
**Cross-platform (npm):**
```bash
npm install -g prior-cli
```
## Login
```bash
prior login
```
Opens a browser window to sign in with your Prior Network account.
## Usage
```bash
prior chat
```
Starts an interactive chat session. Prior is an agentic AI — it can read, write, and edit files, search your codebase, run shell commands, research the web, generate images, and automate Prior services, chaining tools together to finish a task from a single prompt.
## What Prior can do
| Capability | Example prompt |
|---|---|
| **Read / write files** | `read package.json` |
| **Edit code (surgical)** | `in server.js change the port to 4000` |
| **Search the codebase** | `find every place we call fetchUser` |
| **Coding** | `write a python script that prints fibonacci numbers` |
| **Shell** | `what node version am i on` |
| **Web research** | `what is the latest news in the philippines` |
| **Weather** | `what's the weather in tokyo` |
| **Image generation** | `generate a sunset over the ocean` |
| **Prior Network** | `show my prior profile` |
## Agent mode
Prior runs as an autonomous agent — it chains multiple tool calls together to complete complex tasks without you breaking them down step by step.
```
> find where generate_image is defined, then change its default steps to 25
```
Prior locates the file, searches for the code, reads it, and makes a surgical edit — all in one go.
## Attach files with `@`
Type `@` to pull a file into the conversation as context — an interactive picker appears (↑/↓ to select, Tab/Enter to insert).
```
> summarize @src/server.js and suggest improvements
```
## One-shot mode
Run a single prompt and exit — scriptable and pipe-able, no chat session.
```bash
prior run "explain what this project does"
cat error.log | prior run "what's causing this error?"
prior run --yes "in config.js bump the timeout to 30s" # --yes auto-approves edits
```
## Slash commands
| Command | Description |
|---|---|
| `/help` | Show available commands |
| `/clear` | Clear the conversation |
| `/save ` | Save the current session |
| `/load ` | Load a saved session |
| `/saves` | List all saved sessions |
| `/delete ` | Delete a saved session |
| `/compact` | Compress the conversation to free up context |
| `/learn` | Scan the current directory into a `prior.md` project context |
| `/usage` | Show today's token usage |
| `/timer ` | Start a countdown timer (e.g. `30s`, `5m`, `1m30s`) |
| `/update` | Check for updates and install if behind (works for npm and the exe) |
| `/uncensored` | Load Prior Uncensored model |
| `/censored` | Load Prior Standard model |
| `/exit` | Exit the CLI |
## Tips
- **Attach files** — type `@` for an interactive file picker that adds a file's contents as context
- **Multiline input** — end a line with `\` and press Enter to continue on the next line
- **Clipboard images** — press `Alt+V` to attach an image from your clipboard
- **Cancel** — press `Ctrl+C` to cancel a running response
## Requirements
- Node.js 16+ (npm install), **or** the standalone `prior.exe` — no Node needed
- A [Prior Network](https://priornetwork.com) account
## Maintainers
See **[guide.md](guide.md)** for the release process — versioning, publishing to npm,
building/attaching the standalone `prior.exe`, the self-updater, and the CI workflows.
## License
MIT