Minimalist personal AGI agent scaffold for Node 24, TypeScript ESM, Ink, and MCP.
- Install dependencies with
npm install. - Run the guided setup with
npm run setup. - Start the TUI with
npm run devduring development ornpm startafter building.
npm run setuplaunches the interactive config wizard.npm run devruns the app in watch mode throughtsx.npm run buildemits ESM output intodist/.npm startruns the built app fromdist/index.js.
src/core/contains the agent loop and state manager.src/tui/contains the Ink-based terminal UI.src/config/contains YAML persistence and the interactive wizard.src/providers/contains provider auth and client adapters.src/tools/contains the native registry and MCP bridge.
Secrets are resolved in this order:
- Environment variables from
.envor the shell. - OS keychain when
keytaris available. ~/.agent/keys.jsonas a fallback vault.
Built-in provider presets are available for OpenAI, Anthropic, xAI, Groq, and Mistral. The setup wizard stores each provider's API key under its own secret namespace and pre-fills the matching default model and API base URL.
The TUI restores the last transcript from ~/.agent/history.yaml on startup. Use Browse transcripts to reopen archived chats, and New chat to archive the current conversation before starting a clean one.
Add stdio or streamable HTTP MCP servers in the setup wizard. The agent will discover tools at startup and prefix remote tool names with the server name.
The TUI also shows an MCP inspector with each configured server, its loaded tools, and any connection errors, and Refresh tools reloads that view after config changes.