中文
~/home / TypeScript / GitHub
GitHub · TypeScript

pi-from-scratch

pi-from-scratch is a coding AI agent for To quickly build a functional AI agent prototype for simple tasks without depending on big model platforms. Pricing: Free. As of 2026-08-11, KanonAgent records 473 票. First indexed by KanonAgent on 2026-08-11.
A 600-line TypeScript implementation that lets developers build a basic Pi agent from scratch, ideal for learning and rapid prototyping without relying on large model platforms.
pi-from-scratch — official preview image
473 upvotes
Tracked by Kanon since Aug 11, 2026
🤖 Agent teardown · coding
Job to be doneTo quickly build a functional AI agent prototype for simple tasks without depending on big model platforms.
AutonomyL2 · tool-calling(evidence: "tool-calling…")
Who it is forDevelopers
Prerequisitesopen source · self-hostable · bring your own API key
PricingFree
Traction · why it is risingGained 447 upvotes on Product Hunt
Why it matters

Its minimal codebase and customizable design make it an excellent starting point and reusable foundation for learning and building AI agents.

Evidence quotesverbatim, from the product’s own materials

“public GitHub repository (README fetched)”— structural
“npm install export NANOPI_API_KEY=your-api-key npm run dev”— readme
“export NANOPI_API_KEY=your-api-key”— readme
“tool-calling”— topics
“需要 Node.js 22 或更高版本,以及一个 OpenAI 兼容 API。”— readme
TypeScript
Signal source: GitHub
Visit official site →
📛 Official badgefor your site / README
pi-from-scratch badge
Building pi-from-scratch? Pick a style above — the embed code updates live. Deep color control via URL params: bg= / fg= / accent= (hex). It links back to this page.
Share on X
On mobile tap Share for WeChat / RED (Xiaohongshu) / X; on desktop use Copy text and paste into the app.

FAQ

What is pi-from-scratch?

A 600-line TypeScript implementation that lets developers build a basic Pi agent from scratch, ideal for learning and rapid prototyping without relying on large model platforms.

What does pi-from-scratch do?

To quickly build a functional AI agent prototype for simple tasks without depending on big model platforms.

Why does pi-from-scratch matter?

Its minimal codebase and customizable design make it an excellent starting point and reusable foundation for learning and building AI agents.

How much does pi-from-scratch cost?

Free

Is pi-from-scratch free?

Yes — pi-from-scratch has a free tier. Pricing as stated on its own page: Free

Is pi-from-scratch open source?

Yes — pi-from-scratch is open source.

Can I self-host pi-from-scratch?

Yes — pi-from-scratch can be self-hosted.

How popular is pi-from-scratch?

As tracked by KanonAgent: 473 upvotes (first indexed 2026-08-11).

What are the best pi-from-scratch alternatives?

Similar AI agents tracked by KanonAgent: gemini-cli, Codédex, LLM Gateway, goose, Hack2hire, Web3Forms.

pi-from-scratch alternatives — similar AI agents

gemini-cliCodédexLLM GatewaygooseHack2hireWeb3Forms

Where this fits — browse the same shelf

AI Coding AgentsSelf-hosted & open-source AI agents