中文
~/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-10-22, KanonAgent records 1.3k upvotes. 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
1.3k upvotes
Tracked by Kanon since Aug 11, 2026
Cooling
status
30/100
momentum · conf 0.92
61d
tracked since 2026-08-22
2026-10-17
last meaningful change
6
evidence records

Status basis: npm_downloads_7d momentum fell to 0 per 3d from 16 (<= 40% of the prior window)

📈 Timelinewhat changed, and when
🔎 Known / Unknown 11 of 23 fields unknown
Machine-callable— unknown —
Open source1 verified 1 quote(s)
Self-hostable1 inferred 1 quote(s)
Bring your own key1 inferred 1 quote(s)
Autonomy level2 inferred 1 quote(s)
Pricing model— unknown —
Integrations— unknown —

“Unknown” means we have not verified it — it is not a “no”. Hard filters never treat unknown as false.

🤖 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: 1.3k upvotes (first indexed 2026-08-11).

What are the best pi-from-scratch alternatives?

Similar AI agents tracked by KanonAgent: deepseek-harness, gemini-cli, Codédex, LLM Gateway, oh-my-openagent, goose.

pi-from-scratch alternatives — similar AI agents

deepseek-harnessgemini-cliCodédexLLM Gatewayoh-my-openagentgoose

Where this fits — browse the same shelf

AI Coding AgentsAI agents for Multi-agent orchestrationAre there open-source AI agents for Multi-agent orchestration?Can I self-host an AI agent for Multi-agent orchestration?Self-hosted & open-source AI agents