Skip to content
free-pi

FreePi CLI

A free AI coding agent in your terminal.

Sign in with GitHub, no card. Tasteful terminal ads pay for the inference.

Needs Node.js 22.15 or newer.

Mockup of a free-pi CLI session: the startup header, a request to add a dark-mode toggle, tool calls on the project, the reply, and the status line with the model and today's free credits.

How it works

Three steps.

  1. Run the CLI

    Execute npx free-pi-cli@latest in your terminal.

  2. Sign in with GitHub

    Approve the sign-in on a freepi.ai page that opens from your terminal. No payment details needed.

  3. Code for free

    Get a daily allowance of free coding help. Tasteful terminal ads cover the compute cost.

What you get

Everything in the box.

Your choice of models

Switch models anytime with /model. The list loads from the server, so it can change without a new release. A few of the models listed today:

  • Particle-1
  • DeepSeek V4.1 Flash
  • GLM 5.3 Flash
  • DeepSeek V4 Flash
  • DeepSeek V4.1 Flash 600tps
  • DeepSeek V4 Pro
  • Gemini 4 Carbon
  • Gemini 4 Hydrogen
See all models

Free image generation

Ask for a mockup, icon or illustration and it lands in your project's images/ folder. No API key, no card. Each image counts toward your free daily allowance.

  • Generated SaaS dashboard mockup with a sidebar, a revenue line chart and three KPI cards
    A SaaS dashboard UI mockup with a sidebar, revenue line chart and three KPI cards
  • Generated flat app icon of a rocket in a rounded square with a purple gradient
    A flat app icon of a rocket in a rounded square, purple gradient
  • Generated landing page hero for a coffee subscription called Brewly
    A landing page hero for a coffee subscription called Brewly

Cyber Defense

An opt-in section of the /model picker for security work on systems you own or are authorized to test, plus a bundled security-audit skill.

Read about Defense

Open source

The CLI is open source under the MIT licence. Read the code on GitHub.

View on GitHub

Based on Pi

Built on the Pi agent harness by Mario Zechner.

Pi on GitHub

Invite a friend

Run /invite in the CLI to get your link.

Check your referral status

CompareFreebuffOpenCodeClaude CodeGemini CLIAiderOpenAI Codex CLIGitHub Copilot CLICursor CLI

Questions

Good to know.

Is it really free?
Yes. You get a free daily allowance, and tasteful terminal ads cover the compute cost, so you never enter payment details.
What do I need to run it?
A terminal, Node.js 22.15 or newer, and a GitHub account. No install is needed first: npx downloads and runs the CLI.
Does it use my sessions for training?
We may train on session data to create a better experience and more powerful, lower-cost models. Do not put secrets or code you are not allowed to share into a session.
What happens when I reach the daily limit?
Past the free allowance, requests run on a slower lane of spare capacity, and the server may ask you to try again in a little while. Credits spend after the free allowance, so bought or earned credits keep you going at full speed β€” /buy-credits opens the buy page. Slash commands such as /usage still work.
Who is it for?
Built for developers who refuse to keep paying more for coding tools. If you're a student, indie developer, or building where standard tool pricing is prohibitive, this is for you.