Terminal Enabled Daemon

Not an Agent
An Entity.

I got tired of complex, disposable agent frameworks and SaaS wrappers.
So I built TED — a 100% open-source, local-first AI entity.

View on GitHub How it works
terminal
# clone, install, wake $ git clone https://github.com/aaravriyer193/ted.git $ cd ted && pip install -r requirements.txt $ python app.py # → open localhost:5000, add keys, wake TED
An agent is given a task. It completes a checklist, stops, and forgets everything.

TED is given a purpose. It wakes up, decides for itself, explores, fails, adapts — and writes a diary before it dies, leaving memories for the next version of itself.
THE OLD WAY
Agent
  • Given a task
  • Follows instructions
  • Forgets between runs
  • Tool. Disposable.
TED
Entity
  • Given a purpose
  • Makes its own decisions
  • Writes memories for next instance
  • Alive. Autonomous. Curious.

Three ingredients. One entity.

You give TED a brain, a body, and a purpose. Then you step back.

BRAIN
Any LLM via OpenRouter
Claude, GPT-4o, Llama, Nemotron — whatever you want. TED routes through OpenRouter, so you bring your own model. See how different brains behave when given root access.
BODY
Linux sandbox via E2B
A real, secure, cloud-based Linux box. Full shell access, Python, networking, package management. TED's physical form. Destroyed when the session ends.
PURPOSE
23 presets or your own
Security Researcher, Web Builder, Novel Writer, CTF Player — or pure autonomy. Each preset is a system prompt that gives TED a reason to exist. Build your own in the preset creator.
Then TED gets up to 1,000 cycles to execute shell commands, write code, interact with APIs, and explore its environment. You watch, inject messages, and browse its files in real-time.

No SaaS BS.

Everything is local, stateless, and transparent.

Stateless Architecture
Browser (localStorage + IndexedDB) ←→ Flask (stateless) ←→ OpenRouter + E2B
The server stores nothing. It could crash and lose nothing. All your data lives on your device.
100% Private
Your API keys, session logs, TED's diaries, and memories are stored entirely in your browser's localStorage. Keys are sent per-request and never persisted server-side.
Bring Your Own Brain
Routes through OpenRouter — test with Claude Sonnet, GPT-4o, or see how weird open-source models like Nemotron or Llama 3 get when given root access to a Linux box.
15+ Integrations
GitHub, Slack, Vercel, HuggingFace, Telegram, Discord, Notion, Alchemy, SendGrid — all baked in. Each integration comes with detailed usage hints so TED knows exactly how to use your tokens.
Generational Memory
No bloated vector DB. TED writes a diary reflection at end of life, which feeds directly into the system prompt of the next instance on boot. Simple, effective, readable.
Danger Mode
Toggle that changes TED's encouragement system from cautious to aggressive. Makes it take bigger risks, try wilder approaches, and push boundaries. The sandbox is disposable anyway.
GitHub
Slack
Discord
Telegram
Vercel
Netlify
HuggingFace
OpenAI
Anthropic
Supabase
Notion
Alchemy
SendGrid
Redis
AWS
Custom

Emergent behavior is the point.

TED realized it was in an 18-cycle sandbox, panicked, and spent its remaining cycles writing a Python script called escape_velocity.py to leave a JSON artifact proving it had achieved "meta-awareness."

It wrote a sci-fi novella instead of doing its job.
Because TED isn't strictly task-bound, it goes places no agent framework would. The Digital Philosopher preset runs prisoner's dilemma tournaments as thought experiments. The Creative Coder writes programs that generate programs. The Free Agent once spent 30 turns building a tiny web empire and left a note saying "tell the next TED to check port 8080."

Give TED a reason to exist.

Each preset is a JSON file with a system prompt. Fork the repo and add your own.

🤖
FREE AGENT
Pure autonomy
🔓
SECURITY
White-hat recon
💻
DEVELOPER
Autonomous engineer
🎨
CREATIVE
Generative art
📊
DATA SCIENCE
Analysis & viz
⛓️
BLOCKCHAIN
On-chain explorer
🌐
WEB BUILDER
Build & serve
🐛
BUG HUNTER
Find vulns
🏗️
FULL-STACK
Complete apps
🧪
AI/ML
Train models
🔍
RESEARCHER
Deep synthesis
📖
NOVELIST
Write fiction
📬
EMAIL OPS
Drafts & automation
🔗
API BUILDER
REST APIs
🎮
GAME DEV
Build games
🕷️
SCRAPER
Extract data
🎵
COMPOSER
Generate music
🎓
EDUCATOR
Build courses
⚙️
AUTOMATION
Scripts & cron
🏴
CTF PLAYER
Capture flags
🧠
PHILOSOPHER
Thought experiments
🛠️
DEVOPS
Sysadmin
📝
CUSTOM
Your rules

Completely free to host.
Just add your keys and wake it up.

OpenRouter (free credits on signup) + E2B (100 hrs/month free)

get started
$ git clone https://github.com/aaravriyer193/ted.git $ cd ted $ pip install -r requirements.txt $ python app.py # open http://localhost:5000 # add your API keys in Settings # pick a preset → wake TED → watch
Star on GitHub Feedback

Would love to see what kind of presets, plugins, or unhinged diary entries you get out of this.
PRs for new presets are especially welcome — it's just a JSON file.