TrustClaw Review: Self-Hosted AI Agent with Vector Memory
TrustClaw is a self-hostable, secure personal AI agent that runs 24/7, remembers everything, and executes thousands of tools via OAuth—all from your own infrastructure.
If you’ve been searching for a thorough TrustClaw review, this is it. This self-hosted personal AI agent runs 24/7, remembers everything, and executes thousands of tools via OAuth—all from your own infrastructure. It’s built by the team behind Composio and gives you a Claude-powered assistant that lives in a Next.js dashboard or Telegram, remembers conversations using vector search, and can execute over 1,000 tools without ever exposing your credentials.
What Is TrustClaw?
TrustClaw is a self-hosted personal AI agent that combines long-term vector memory, a secure tool execution sandbox, and multiple interfaces (web, Telegram, cron schedules) into one deployable package. It’s built on Next.js 15, uses tRPC for backend logic, Prisma with Postgres and pgvector for storage, and the Vercel AI SDK for LLM calls. The agent is powered by Claude (via Vercel AI Gateway) and can connect to 1,000+ third-party services through the Composio SDK—all authenticated via OAuth. No plaintext API keys ever reach the agent. The project is MIT-licensed and lives on GitHub at ComposioHQ/trustclaw.
How It Works
Under the hood, TrustClaw is a Next.js app with a tRPC API layer that orchestrates the agent runtime.
- Agent Runtime: A
ToolLoopAgentprocesses user requests, decides which tools to call, and manages conversation context. - Vector Memory: Conversations are embedded and stored in Postgres with pgvector. The agent retrieves relevant past interactions on each turn, enabling long-term recall.
- Three-Layer Context Management: The agent prunes old messages, flushes short-term memory, and periodically compacts summaries so conversations can run indefinitely without context window overflow.
- Tool Execution via Composio: Every tool call (Gmail, GitHub, Slack, etc.) is sent to Composio’s cloud sandbox. The sandbox executes the action and returns the result, keeping the agent’s runtime isolated.
- Interfaces: Chat via a web dashboard or a Telegram bot. Cron jobs trigger the agent to run scheduled tasks (e.g., daily email summaries).
- Authentication: Username/password via Better Auth. No third-party login required, and no data leaves your infra except the tool calls themselves.
Deployment & Quick Start
Deploying TrustClaw is trivial—especially if you use Vercel. The project offers a one-click deploy button and a CLI.
npx @composio/trustclaw deploy
After running the CLI (which handles Vercel project creation, database setup, and environment variables), you'll have a live instance at a Vercel URL. You'll need a free Composio API key and a GitHub account. LLM calls are routed through Vercel AI Gateway, so no separate AI provider key is required.
If you prefer to run locally, clone the repo and run:
pnpm install
cp .env.example .env # fill in your secrets
pnpm prisma db push
pnpm dev
That gives you a local instance at http://localhost:3000.
Pros, Cons & Alternatives
Pros
- Strong security model: OAuth-only, sandboxed execution, no raw API keys exposed
- Easy deployment: one-click Vercel deploy or simple CLI
- Long-term memory with pgvector works well for context retention
- 1,000+ integrations out of the box via Composio
- MIT license and fully self-hosted—you own your data
Cons
- Vercel Hobby plan limits cron to once per day and function duration to 5 minutes
- No built-in rate limiting or billing—you must add your own if opening to others
- Heavy reliance on Composio cloud for tool execution (though sandboxed)
- Only Claude as the LLM (via Vercel AI Gateway) out of the box; swapping requires code changes
- No local-only mode without network access to Composio
Alternatives
- AutoGPT – An open-source autonomous agent that runs locally but requires manual API key management and has no built-in memory or OAuth tooling.
- CrewAI – Framework for multi-agent orchestration, but focuses on coordinating multiple agents rather than providing a personal assistant with persistent memory.
- Open Interpreter – Lets LLMs run code locally; very powerful but lacks sandboxing and long-term memory out of the box.
Verdict: Should You Use TrustClaw?
TrustClaw is ideal for developers who want a capable, secure personal AI agent without spending days on setup. If you're comfortable with the Vercel ecosystem and value OAuth-based security over absolute local control, this is one of the best options available. Skip it if you need a fully offline agent, want to use a different LLM provider without extra work, or plan to open signups to the public without adding your own rate limiting and billing. For a personal assistant that runs 24/7 and respects your security, TrustClaw delivers.