TrenchClaw

The Next Generation
Solana Agent

High-performance agentic runtime built on @solana/kit and Bun. Typed actions, composable routines, event triggers, and full operator control from the command line.

~100KB
Solana Kit Bundle
Zero Deps
Web3.js Legacy Free
Modular
Tree-Shakeable

Built for Production

Schema-driven orchestration with TypeScript, Solana Kit, and Bun. No legacy dependencies. Operator-first design.

Lightning Fast

Bun runtime + @solana/kit (100KB vs 450KB web3.js). Modular imports, native Web Crypto, zero userspace polyfills.

Type-Safe Schemas

Zod-first tool contracts. Compile-time transaction checks. Runtime validation of untrusted LLM-generated args before execution.

Functional & Composable

Immutable transaction pipelines. Modular actions, routines (DCA/swing/sniper), and triggers. Policy middleware built-in.

What you get with TrenchClaw

  • Typed Solana actions with policy gates and retries
  • Composable routines: DCA, swing, percentage, sniper
  • Event triggers: timers, price thresholds, on-chain events
  • Bun SQLite state persistence with auto schema sync
  • Vercel AI SDK integration for agent orchestration
  • Provider-agnostic RPC/Jupiter adapters (Helius, QuickNode)
trenchclaw — operator@cli

$ bun run src/cli.ts start

Loading runtime config...

Wallet keypair loaded

Solana Kit initialized

RPC connection verified

SQLite schema synced

Zod schemas registered

AI SDK orchestrator ready

Listening for triggers...

[DCA routine] next execution in 14m 22s

[Price trigger] SOL target: $185.00 | current: $178.42

Technology Stack

Every dependency is intentional. No legacy baggage. Built on the fastest, most modern primitives available in 2026.

Runtime

Bun

JavaScript runtime & package manager

TypeScript

Strict type-safe codebase throughout

Solana

@solana/kit

Modern modular Solana SDK (~100KB)

Jupiter

Best-price DEX aggregation & routing

Helius / QuickNode

Provider-agnostic RPC adapters

AI & Orchestration

Vercel AI SDK

Agent tool-calling & LLM orchestration

Zod

Runtime schema validation for tool args

Persistence

Bun SQLite

Native SQLite with auto schema sync

Solana Kit-Native

TrenchClaw uses modern @solana/kit. No legacy web3.js. No unnecessary dependencies.

FeatureTrenchClawLegacy Approach
Primary SDK@solana/kit@solana/web3.js v1
Bundle Size~100KB~450KB
ArchitectureModular + Tree-shakeableMonolithic
Crypto APIWeb Crypto (native)Polyfills
Type SafetyCompile-time TX checksLoose typing
Runtime FocusOperator CLI + AgentGeneric toolkit

Ready to Build?

Join operators building the future of Solana agents. TrenchClaw is ready for the dangerous work.

Get Started on GitHub