free-pi-cli 0.6.10 → 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 CHANGED
@@ -1,55 +1,70 @@
1
1
  # free-pi-cli
2
2
 
3
- A preconfigured [pi](https://github.com/earendil-works/pi) coding agent, free
4
- for the user because ads pay for inference. All model calls route through the
5
- free-pi proxy — you never handle a model API key.
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
- First run shows a consent screen (free inference, ads pay for it, sessions
12
- may be used to train models), then signs you in with GitHub. Config and the
13
- signed-in token live under `~/.free-pi/agent`, kept separate from any
14
- existing `~/.pi/agent` install.
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
- ## Running it again
20
+ Requires Node 22.19 or newer. The command is `free-pi-cli`, not `pi`.
17
21
 
18
- Closed the terminal? Just run the same command again — you stay signed in:
22
+ ## Usage
19
23
 
20
24
  ```
25
+ cd your-project
21
26
  npx free-pi-cli@latest
22
27
  ```
23
28
 
24
- Prefer a shorter command? Install it once, globally, then call it by name:
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
- npm install -g free-pi-cli
28
- free-pi-cli
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
- Note: `free-pi-cli` is the command — **not** `pi`. If you see the built-in
32
- agent suggest `pi --session …` on exit, use `npx free-pi-cli@latest --session <id>`
33
- instead. In a folder with a recent session, some users are offered a
34
- one-keypress continue (default Yes). `--continue` resumes the last session
35
- here; `--new` starts fresh.
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)