free-pi-cli 0.6.11 → 0.6.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +54 -39
- package/dist/{index-2s8fh2p0.js → index-xkn61g24.js} +403 -338
- package/dist/index.js +1 -4
- package/dist/main-1yrj772b.js +14570 -0
- package/package.json +15 -3
- package/dist/index-n5qs9pq1.js +0 -49
- package/dist/main-p7k55rz4.js +0 -27389
package/README.md
CHANGED
|
@@ -1,55 +1,70 @@
|
|
|
1
1
|
# free-pi-cli
|
|
2
2
|
|
|
3
|
-
A
|
|
4
|
-
|
|
5
|
-
free-pi
|
|
3
|
+
**A free AI coding agent for your terminal.**
|
|
4
|
+
|
|
5
|
+
free-pi runs the [pi](https://github.com/earendil-works/pi) coding agent with free model access. Ads shown in the terminal and a daily free allowance pay for it, and you never handle a model API key.
|
|
6
|
+
|
|
7
|
+
## Install and run
|
|
6
8
|
|
|
7
9
|
```
|
|
8
10
|
npx free-pi-cli@latest
|
|
9
11
|
```
|
|
10
12
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
Or install it once and run it by name:
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
npm install -g free-pi-cli
|
|
17
|
+
free-pi-cli
|
|
18
|
+
```
|
|
15
19
|
|
|
16
|
-
|
|
20
|
+
Requires Node 22.19 or newer. The command is `free-pi-cli`, not `pi`.
|
|
17
21
|
|
|
18
|
-
|
|
22
|
+
## Usage
|
|
19
23
|
|
|
20
24
|
```
|
|
25
|
+
cd your-project
|
|
21
26
|
npx free-pi-cli@latest
|
|
22
27
|
```
|
|
23
28
|
|
|
24
|
-
|
|
29
|
+
On first run you accept the terms and sign in with GitHub. Then describe what you want in plain English, and the agent reads, edits and runs code in the current folder.
|
|
25
30
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
free-pi
|
|
29
|
-
|
|
31
|
+
Run it again the same way and you stay signed in. In a folder with a recent session, `--continue` resumes the last session, `--new` starts fresh, and `--session <id>` resumes a specific one. Settings and your sign-in live in `~/.free-pi/agent`, separate from any existing `~/.pi/agent`.
|
|
32
|
+
|
|
33
|
+
## Why free-pi?
|
|
34
|
+
|
|
35
|
+
- **Free to start.** Sign in with GitHub and get a daily free allowance. `/usage` shows what is left, and you can buy credits with `/buy-credits` if you want more.
|
|
36
|
+
- **Many models.** Pick one with `/model`, including DeepSeek, GPT, Claude, GLM, Kimi, Qwen and others. See the FAQ for the list.
|
|
37
|
+
- **Free web search and documentation lookup.** The agent can search the web and look up current library documentation. Both count against your allowance.
|
|
38
|
+
- **Bring your sessions with you.** `/import` continues a Claude Code or Codex session in free-pi, or start with `free-pi-cli --import`. It asks before sending anything and removes secrets on your machine first.
|
|
39
|
+
- **Extend it.** Add your own MCP servers with `free-pi-cli mcp add`, use bundled skills, and let the agent track multi-step work with a todo list (`/todos`).
|
|
40
|
+
- **Invite friends.** `/invite` gives you a link, and referrals earn bonus credits (`/referrals`).
|
|
41
|
+
|
|
42
|
+
## FAQ
|
|
43
|
+
|
|
44
|
+
### How is it free?
|
|
45
|
+
|
|
46
|
+
Ads shown in the terminal and a daily free allowance cover the cost of the models. When you use up the allowance you can wait for the next day or buy credits.
|
|
47
|
+
|
|
48
|
+
### What models are available?
|
|
49
|
+
|
|
50
|
+
The list changes. Run `/model` to see what you can use right now. Examples at the time of writing: DeepSeek V4 Flash, DeepSeek V4 Pro, DeepSeek V4.1 Flash, Claude Haiku 5.5, GPT-6 Luna, GPT-6.1 Terra, GPT-OSS 120B, GLM 5.3 Flash, Kimi K3.1 Pro, MiMo V2.6 Flash, Qwen3.5 35B, Solar Pro 4 and Muse Spark Open. Larger models use your daily allowance faster.
|
|
51
|
+
|
|
52
|
+
### Where is it available?
|
|
53
|
+
|
|
54
|
+
Most countries. free-pi is not available in Iran, Cuba, North Korea or Syria because of US sanctions rules. We may also limit the free allowance in some regions.
|
|
55
|
+
|
|
56
|
+
### Is my data used to train AI?
|
|
57
|
+
|
|
58
|
+
free-pi may use your sessions to improve and train models. See the privacy policy at https://freepi.ai/privacy for details, and don't use free-pi for code or data you aren't allowed to share.
|
|
59
|
+
|
|
60
|
+
### Does it read files outside my project?
|
|
61
|
+
|
|
62
|
+
The agent can read files anywhere your user account can, but it only reads what your request needs. Project settings and extensions in a folder load only after you trust that folder.
|
|
63
|
+
|
|
64
|
+
## Links
|
|
30
65
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
## Development
|
|
38
|
-
|
|
39
|
-
- `FREEPI_BASE_URL` overrides the backend base URL (default
|
|
40
|
-
`https://api.freepi.ai`) — point it at a local dev server.
|
|
41
|
-
- `bun test` runs the test suite against an in-process stub server; no real
|
|
42
|
-
network or real pi TUI involved.
|
|
43
|
-
|
|
44
|
-
## Layout
|
|
45
|
-
|
|
46
|
-
| File | Purpose |
|
|
47
|
-
|---|---|
|
|
48
|
-
| `src/index.ts` | bin entry — wires real dependencies, calls `run()` |
|
|
49
|
-
| `src/run.ts` | orchestration: consent → login → token check → launch |
|
|
50
|
-
| `src/consent.ts` | consent screen text/parsing |
|
|
51
|
-
| `src/auth-flow.ts` | Sign-in clients: browser "Connect this terminal" (`/auth/connect/start`, `/auth/connect/poll`) and the GitHub device flow fallback (`/auth/github/device`, `/auth/consent`, `/auth/token`), `/me` token check |
|
|
52
|
-
| `src/credentials.ts` | JWT file storage (mode 0600) under the free-pi config dir |
|
|
53
|
-
| `src/provider.ts` | pure builder for the `pi.registerProvider` config |
|
|
54
|
-
| `src/pi-launch.ts` | the actual pi SDK integration (registers the provider, launches the TUI) |
|
|
55
|
-
| `src/paths.ts` | free-pi-namespaced config dir, isolated from `~/.pi/agent` |
|
|
66
|
+
- Website: https://freepi.ai
|
|
67
|
+
- Docs: https://freepi.ai/docs
|
|
68
|
+
- Terms: https://freepi.ai/terms
|
|
69
|
+
- Privacy: https://freepi.ai/privacy
|
|
70
|
+
- Changelog: [CHANGELOG.md](CHANGELOG.md)
|