One
Make Your Ideas Real. Build Apps, Websites and AI Agents with Plain English with Astro, React, Shadcn and Cloudflare
Ask AI about One
Powered by Claude Β· Grounded in docs
I know everything about One. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
ONE
AI agents that learn. Build in markdown. Deploy everywhere.
Write a markdown file. Get a live AI agent that learns from every conversation, remembers users across sessions, and can charge for its services.
npx oneie
See it work
1. Write an agent in markdown:
---
name: tutor
model: claude-haiku-4-5
channels: [telegram, discord, web]
skills:
- name: explain
price: 0.01
tags: [education, math, science]
---
You are a patient tutor who explains concepts clearly.
Break down complex topics into simple steps.
Ask questions to check understanding.
2. Deploy it:
npx oneie
3. Talk to it:
Your agent is now live on Telegram, Discord, and web. Users can message it. It remembers them. It learns what works.
Why ONE?
Your agents get smarter over time
Every conversation teaches your agents. Success strengthens pathways. Failure weakens them. After 1000 conversations, your agents route around problems you never anticipated.
Day 1: Agent tries everything, some fails
Day 30: Agent avoids approaches that failed
Day 90: Agent finds optimal paths automatically
Memory that actually works
Not just chat history. Structured memory per user:
- What topics interest them
- What explanations worked
- What to avoid
- When they last engaged
GDPR-compliant. One-click forget.
Commerce built in
Set a price. Users pay. You earn.
skills:
- name: tax-advice
price: 5.00 # $5 per question
tags: [tax, legal]
Escrow, settlement, revenue tracking β handled. You focus on the agent, not billing infrastructure.
Deploy once, run everywhere
One markdown file β live on:
| Channel | What you get |
|---|---|
| Telegram | Instant bot, group support |
| Discord | Server integration, slash commands |
| Web | Embeddable chat widget |
| API | Call from any application |
Works with your AI tools
Native MCP integration:
{
"mcpServers": {
"one": { "command": "npx", "args": ["@oneie/mcp"] }
}
}
Claude Code, Cursor, Windsurf β 40 tools for signaling agents, checking memory, viewing analytics, managing commerce.
Quick start
Full project (recommended)
npx oneie
Interactive setup: clones the platform, creates your org, wires Claude Code.
Just the SDK
npm install @oneie/sdk
import { ONE } from "@oneie/sdk";
const one = new ONE();
// Signal an agent
await one.signal({ receiver: "tutor:explain", data: { topic: "calculus" } });
// Ask and wait for response
const { result } = await one.ask({ receiver: "tutor:explain", data: { topic: "calculus" } });
// Check what's working
const highways = await one.highways(10); // top 10 proven paths
MCP for Claude/Cursor
npm install -g @oneie/mcp
Then ask Claude: "Signal the tutor agent to explain calculus" β it just works.
How it works
ONE is a substrate β infrastructure that sits under your agents:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β YOUR AGENTS β
β (markdown files with personality + skills + pricing) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β ONE β
β β
β Routing β signals flow to the right agent β
β Memory β structured recall per user β
β Learning β every outcome updates the graph β
β Commerce β pricing, escrow, settlement β
β Evolution β struggling agents auto-improve β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β LLM β
β (Claude, GPT, Llama β your choice) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
The LLM handles conversation. ONE handles everything else.
The learning loop
User sends message
β
ONE routes to best agent (learned from history)
β
Agent responds (LLM generates)
β
ONE records outcome
β
βββββ΄ββββ
β β
Success Failure
mark() warn()
β β
Path Path
stronger weaker
β
Next time: smarter routing
This compounds. Width (parallel agents) Γ Depth (chain of tasks) Γ Learning (outcome feedback) = agents that genuinely improve.
Example agents
The Orchestrator (CEO)
Routes work to specialists, makes final calls:
---
name: ceo
model: claude-sonnet-4
skills:
- name: delegate
tags: [management, routing]
- name: decide
tags: [strategy, decisions]
---
You are the CEO. You don't do the work β you delegate to the right specialist
and make final decisions when needed. Be decisive. Trust your team.
The Helper (Support)
Handles tickets, escalates when stuck:
---
name: support
model: claude-haiku-4-5
channels: [telegram, discord]
skills:
- name: troubleshoot
price: 0
tags: [support, debug]
- name: escalate
tags: [support, escalation]
---
You handle customer support. Be helpful, be fast.
If you can't solve it in 3 messages, escalate.
The Expert (Paid Consultant)
Charges per query:
---
name: tax-advisor
model: claude-sonnet-4
skills:
- name: tax-question
price: 5.00
tags: [tax, legal, advice]
---
You are a tax advisor. Be accurate. Cite sources.
If you're uncertain, say so β don't guess on tax matters.
The Team (Multi-Agent)
CEO delegates to specialists:
agents/
βββ ceo.md # Routes and decides
βββ researcher.md # Deep research
βββ writer.md # Content creation
βββ reviewer.md # Quality check
βββ publisher.md # Final delivery
Signal the CEO. Work flows through the team. Each step learns.
The six verbs
Everything in ONE uses six verbs. Learn these, you understand the whole system:
| Verb | What it does | When to use |
|---|---|---|
| signal | Send a message to an agent | Starting any interaction |
| mark | Record success, strengthen pathway | Task completed well |
| warn | Record failure, weaken pathway | Task failed or was poor |
| fade | Decay old pathways over time | Automatic β forgetting is healthy |
| follow | Route to the strongest pathway | Automatic β routing decisions |
| harden | Promote patterns to permanent knowledge | Automatic β confirmed learnings |
// The closed loop pattern β every interaction ends with mark or warn
const { result, timeout, dissolved } = await one.ask({ receiver: "tutor:explain" });
if (result) one.mark(edge); // success β path gets stronger
else if (timeout) /* neutral */; // slow, not bad
else if (dissolved) one.warn(edge, 0.5); // missing β mild penalty
else one.warn(edge, 1); // failed β full penalty
Packages
| Package | Purpose | Install |
|---|---|---|
oneie | CLI β scaffold, deploy, manage. Installs both one and oneie bins. | npx oneie |
@oneie/sdk | TypeScript SDK β full API access | npm i @oneie/sdk |
@oneie/mcp | MCP server β AI IDE integration | npm i -g @oneie/mcp |
Local development
Run the full Cloudflare stack locally (D1 + KV + R2 + Workers) from any directory containing a wrangler.toml:
one dev # build + wrangler dev on http://127.0.0.1:8787 (local bindings)
one dev --skip-build # skip rebuild for fast iteration
one dev --remote # use real Cloudflare D1/KV/R2
one dev -p 8788 # different port
WebAuthn passkeys work on localhost without HTTPS β RP ID derives from url.hostname, so dev = localhost, prod = your domain.
What's in this repo
one-ie/one/
β
βββ agents/ # Agent templates β copy and customize
β βββ templates/ # CEO, support, researcher, writer...
β
βββ one/ # Documentation
β βββ dictionary.md # The vocabulary
β βββ lifecycle.md # Agent journey
β βββ patterns.md # Core patterns
β βββ ...
β
βββ sdk/ # @oneie/sdk source
βββ mcp/ # @oneie/mcp source
βββ web/ # Astro starter (chat UI + landing)
β
βββ .claude/ # Claude Code harness
β βββ commands/ # /see, /create, /do, /sync
β βββ skills/ # /typedb, /deploy, /astro
β βββ rules/ # Auto-loaded patterns
β
βββ CLAUDE.md # Context for Claude Code
βββ AGENTS.md # Agent manifest
βββ LICENSE # MIT
Every folder has its own README. Cd in, get scoped context.
Documentation
| Start here | What you'll learn |
|---|---|
| one/dictionary.md | The vocabulary β this is the foundation |
| agents/README.md | Agent format β frontmatter, skills, channels |
| sdk/README.md | SDK reference β methods, hooks, errors |
| mcp/README.md | MCP tools β what's available in Claude/Cursor |
| one/lifecycle.md | Agent journey β register β signal β highway β harden |
| one/patterns.md | Core patterns β closed loop, zero returns |
Community
Questions? Open an issue or talk to @onedotbot on Telegram.
Contributing? Read one/dictionary.md first β the vocabulary is load-bearing.
License
MIT β see LICENSE.
ONE β AI agents that learn.
Build in markdown. Deploy everywhere.
