# TODO for AI Edge The **Web connector** for [TODO for AI](https://todofor.ai) — connects your machine to the TODO for AI server and gives TODOs shell, file, and browser access to get things done locally. Handles file operations, shell execution, DOCX/XLSX editing, git-aware file-change tracking, and more. > **Edge is no longer offered as a download.** To connect your computer to TODO for AI, use the [Bridge](https://github.com/todoforai/bridge) or one of the options on [todofor.ai/downloads](https://todofor.ai/downloads). This repository stays for existing installs and development. ## Existing installs First run opens your browser for device-flow login and saves the key to the platform credentials store (`~/.config/todoforai/credentials.json` on Linux, `~/Library/Application Support/todoforai/credentials.json` on macOS, `%APPDATA%\todoforai\credentials.json` on Windows; legacy `~/.todoforai/credentials.json` still read). Shared with the bridge and CLI. No flags needed.
Other ways to authenticate ```bash todoforai-edge --api-key sk_... # one-shot, not persisted (also: --api-key=$MY_API_KEY) ``` Get a key at [todofor.ai/apikey](https://todofor.ai/apikey).
## From source ```bash git clone https://github.com/todoforai/edge.git cd edge/bun bun install bun run src/index.ts ``` ### Compile standalone binary ```bash cd bun bun build src/index.ts --compile --outfile dist/todoforai-edge ``` ## Development ```bash export TODOFORAI_API_KEY_DEV="your-local-dev-api-key" make run # Production make run-dev # Local (http://localhost:4000) ``` ## What it does - **Shell** — execute commands with streaming output and PTY (interrupt, stdin) - **Filesystem** — read/write/search files, workspace tree, gitignore-aware - **Documents** — DOCX/XLSX/PDF read & edit - **Managed runtimes** — auto-provisions Python venv, Node.js packages, and native binaries under `~/.todoforai/tools/` (added to PATH) - **Tool catalog** — on-demand install of CLIs like `gh`, `rg`, `cloudflared`, `supabase`, `stripe`, `flyctl`, … - **Browser bridge** — drive the user's own browser via the [TODOforAI extension](https://todofor.ai/downloads/extension) (CDP, controlled with `agent-browser`) ([Chrome](https://chromewebstore.google.com/detail/todo-for-ai/oemlbhbggllbelfemliboclfagbchcoj) · [Firefox](https://addons.mozilla.org/firefox/addon/todo-for-ai/)) See [API_USAGE.md](API_USAGE.md) for the full function list and message protocol. ## License MIT License with Notification Request - see the [LICENSE](LICENSE) file for details.