Repository avatar
AI Tools
v0.1.2
active

wren

io.github.wrenagent-app/wren

Onchain market data, honeypot checks, and your Wren memory, vault and agents.

Documentation

Wren: onchain AI terminal for Elysium, Base, Robinhood Chain, Solana and HyperEVM

An onchain AI terminal with live markets, honeypot screening, agents and long-term memory.
Elysium · Base · Robinhood Chain · Solana · HyperEVM

🌐 wrenagent.app  ·  Open the app  ·  Docs  ·  𝕏 @wrenagentapp

CI Website X Release License Chains Frontend Node Tests Signing


Wren puts market research, risk checks, AI agents and a wallet in one place. Open a chain and you see the tokens launched in the last few seconds, read straight from each launchpad. Click a token and you get a live chart and a live stream of buys and sells. Every list passes through a honeypot screen first, so tokens that cannot be sold never reach the page.

The whole frontend is plain HTML with no build tooling and no framework. index.html (landing), app.html (the app) and docs.html (documentation) work when opened straight from disk. An optional Node server adds wallet sign-in, Memory, a versioned Vault, persistent Agents, API keys, an AI Terminal backed by Claude, and a custodial wallet whose signing is switched off by default.

Contents

Highlights

Live launches on every chainThe newest tokens from Montra (Elysium), Bankr and Clanker (Base), Pons (Robinhood Chain) and pump.fun (Solana), read directly from each launchpad's API or factory contract. pump.fun launches stream in over a WebSocket the second they are created.
Real-time tradesToken pages show swaps seconds after they land. On Solana they come from the RPC log stream; on Base and Robinhood Chain they are read from the pool's swap events every 2.5 s, covering Uniswap V2, V3 and V4, Aerodrome and Pons V2 pools.
Honeypot screenEvery listed token is checked before it is shown: GoPlus and honeypot.is on Base, GoPlus on Robinhood Chain, mint-account checks on Solana, and Wren's own bytecode check and sell-path simulation on Elysium and HyperEVM.
Token RadarNew tokens from the last 7 days with liquidity, volume, holders and a transparent risk score you can sort by.
Search anythingFind a token by name, symbol or contract address across five chains from one search box.
Agents, Memory and VaultPersistent agents with goals and notes, a searchable memory your AI tools share, and documents with full version history.
AI TerminalAsk questions in plain language. The model can call read-only market tools for any supported chain and recall your saved memories.
Safe by defaultThe custodial wallet cannot sign until the operator turns it on, and even then every send needs a fresh quote, a confirm token and per-transaction and daily USD limits.
Plain filesThree HTML pages and a few images. No bundler and no framework; the pages work from disk too.

Tour

Home

The first screen after launch. A five-step checklist ticks itself as you go, and Market movers shows the newest launches across every launchpad, tokenized stocks on Robinhood Chain, the majors and what is trending on Solana.

Home page with the Get started checklist and Market movers

Token page: live chart and live trades

Every token opens on its own page with candles from 1 minute to 1 day, price changes over 5 minutes, 1 hour and 24 hours, market cap, liquidity, volume, a buy-pressure bar and the latest trades. The side panel shows the honeypot verdict before anything else. A token flagged as a honeypot gets a red banner and its buy button is disabled.

Token page with a live candlestick chart and the trade panel

Markets and search

One search box for every chain. Type a name or symbol to search Montra (Elysium) and DexScreener (Base, Robinhood Chain, Solana, HyperEVM) at the same time, or paste a contract address to jump straight to its token page. Honeypots are removed from the results, and tokens that share a symbol are flagged, because only the address identifies a token.

Markets page showing live search results for a token name

All chains

A live overview of every chain Wren covers. The strip at the top counts the tokens seen, the freshest refresh, failing providers and the current Elysium block. Each chain card shows its RPC status, block height, gas, how many data sources are answering, and the top three tokens by 24-hour volume.

All chains overview with per-chain status cards

Chain pages

Each chain has its own page: what the app can and cannot do there, live block and gas, the newest launches, the largest tokens and a full market board. The board can be sorted (trending, new, top market cap, volume, gainers) and filtered by launchpad or DEX. On Elysium the page also carries Montra's platform totals.

Elysium chain page with the launchpad filter and market board

Token Radar

Tokens created in the last hour, day or week, with filters for minimum liquidity, New and Graduating flags, and a sort by risk. The honeypot screen reports how many tokens it hid and how many are still being scanned.

Token Radar sorted by risk, highest first

Terminal

Ask about any chain in plain language. Suggestions are grouped by chain and marked READ when they only look, or YOU APPROVE when they would move funds. With a server connected, answers stream from Claude, which can call read-only market tools and use your saved memories.

Terminal with suggestions grouped by chain

Memory, Vault and Agents

With the server running and a wallet signed in, these pages turn into working tools.

Memory page with saved facts and tagsVault document with its version history
Memory. Short facts with tags, saved from the app or from Claude, Cursor and any other MCP client. Searchable, and recalled by the Terminal when Memory is switched on.Vault. Documents with full history. Every save becomes a new version with an optional note, and any version can be restored without rewriting history.
Agents page with two persistent agentsWallet page with the trust model and live balances
Agents. Named workers with a goal, a schedule and a log of notes and learnings. They can be paused or resumed. A scheduled run can never move funds.Wallet. The trust model stated plainly, then your app wallet's addresses and live balances on Base, Robinhood Chain and Solana, along with the server's signing status and spend limits.

Developers and documentation

The Developers hub links the MCP setup, API Market, Skills, Memory, Vault and the docs. The documentation is an 18-page site with search, an "On this page" outline, copy buttons on code blocks, a dark mode and a mobile menu.

Developers hubDocumentation site on the Memory page

Landing page

Wren landing page

On a phone

Every page is built for 390px screens: a bottom tab bar, a "More" sheet, card layouts instead of wide tables, and charts that keep their touch interactions.

Wren on a phone: Home, a token page and Token Radar

How the live data works

Everything on the market pages is fetched from the visitor's browser, straight from public sources that allow cross-origin requests. There is no Wren backend in this path, and no public CORS proxy. Every request has a timeout and a cache, and when a source fails the page keeps its last good figures and says so in its Data sources panel instead of guessing.

ChainNewest launchesMarkets and chartsReal-time trades
ElysiumMontra API (/api/tokens?sort=new)Montra, GeckoTerminalMontra trades API, polled every 4 s
BaseBankr discover API, plus Clanker factory events read from the Base RPCGeckoTerminal, DexScreenerPool swap logs on the Base RPC, every 2.5 s
Robinhood ChainPons factory events on the Robinhood Chain RPCGeckoTerminal, DexScreener, Pons bonding curves read on-chainPons curve BUY/SELL events and Uniswap V4 PoolManager swaps, every 2.5 to 4 s
SolanaPumpPortal WebSocket (subscribeNewToken)GeckoTerminalpump.fun TradeEvents decoded from the Solana RPC log stream
HyperEVMGeckoTerminal new poolsGeckoTerminalPool swap logs on the HyperEVM RPC

How the RPC trade streaming decodes swaps:

  • Uniswap V2 and Aerodrome: the four in and out amounts.
  • Uniswap V3 and Slipstream: signed amounts from the pool's point of view.
  • Uniswap V4 and Pons V2: signed deltas from the trader's point of view, filtered on the PoolManager by pool id.

The side of the pair the token sits on is taken from the address ordering. It is then checked once against the provider's price, and flipped if the two disagree by more than 50 times.

GeckoTerminal allows about 30 requests a minute and sends its 429 replies without CORS headers. Wren spaces its calls, caches pools for 90 seconds and retries a busy source with back-off.

Honeypot screening

A token flagged as a honeypot is removed from every live list: launches, boards, search results, the radar and market movers. If you open it directly by address, its page shows a red banner and its buy button is disabled. Verdicts are cached in the browser and expire, because a deployer can revoke or add powers later. Pending results are rechecked after 2 minutes, clean ones after 30 minutes, and "no scanner" verdicts after a day.

ChainHow it is checkedFlagged when
BaseGoPlus token_security, then a honeypot.is buy-and-sell simulation on a forkSells fail in simulation, holders cannot sell everything, buy or sell tax of 50% or more, the owner can rewrite balances, or the deployer launched honeypots before
Robinhood ChainGoPlus token_security (chain 4663)Same rules as Base
SolanaThe mint account read from the RPC, in batches of 10Active freeze authority, non-transferable, permanent delegate, transfer hook, a transfer fee of 50% or more, or new accounts frozen by default
ElysiumBytecode check, then an eth_call sell-path simulationA holder can transfer but not into the pool, or cannot transfer at all
HyperEVMeth_call sell-path simulationSame as Elysium

No public scanner covers Elysium, so Wren runs its own checks there:

  1. Montra tokens. Every Montra token is an EIP-1167 minimal proxy pointing at the same launchpad implementation. A token whose bytecode exactly matches that clone has no custom transfer or sell logic, so it passes.
  2. Any other token. Wren reads recent Transfer logs. The busiest counterparty is taken as the pool (or the Uniswap V4 PoolManager), and a recent recipient with a balance is used as the test holder. It then simulates transfer(holder → pool) and transfer(holder → 0x…dEaD) with eth_call. A sell moves tokens into the pool, so if the first reverts while the second works, sells are blocked.

Major assets such as USDC, USDT, PYUSD, WETH and wrapped SOL are allow-listed. A token the screen has not checked yet is labelled HP …, and a chain without coverage is labelled HP n/a. Unknown is never shown as safe.

Token Radar risk score

The radar gives every token a score from 0 to 100. It is a heuristic built from on-chain facts, not a safety verdict, and the page says so. Hover a score to see what added to it.

SignalPoints
No honeypot scanner covers the chain+25
Honeypot scan still pending+20
No pool liquidity yet+20
Liquidity under $1k+30
Liquidity under $10k+15
Less than 1 hour old+15
Symbol shared with other tokens+15
Still on a bonding curve+5

The total is capped at 100. A score of 60 or more is labelled High, 35 to 59 Medium, and anything lower Low. The Graduating flag marks tokens between 70% and 100% of the way through their bonding curve.

Accounts, agents and the AI Terminal

The app works without an account: every market page is public. To unlock personal features, run the server in server/, open Account → Settings, paste the API URL and click Sign in.

sequenceDiagram
    participant B as Browser (app.html)
    participant W as Wallet extension
    participant S as Wren server
    B->>S: GET /api/auth/nonce
    S-->>B: nonce (single use, 10 min)
    B->>W: personal_sign(EIP-4361 message)
    W-->>B: signature
    B->>S: POST /api/auth/verify {message, signature}
    S-->>B: bearer token (wren_st_…) and app wallet addresses
    B->>S: Memory · Vault · Agents · Keys · Terminal (Authorization: Bearer …)
  • Sign-in uses Sign-In with Ethereum (EIP-4361). There is no email and no password, and signing costs no gas. The session is a bearer token, so it also works from a page opened as a local file.

  • Memory stores facts with tags and a source (app or mcp), and supports search by words or tag.

  • Vault stores documents. Every save is a new version, a save based on an outdated version is rejected (409) instead of silently overwriting, and restoring copies an old version forward.

  • Agents have a name, a goal, a status, a schedule and a notes log. canMoveFunds is always false.

  • API keys use the format wren_sk_ plus 32 characters. Each key is shown once, stored as a SHA-256 hash, capped at 8 per account, and revocable at any time. A key lets the Wren MCP act as your account for memory, vault and agents. Keys can never sign transactions.

  • The AI Terminal streams answers over Server-Sent Events. The model (default claude-sonnet-5-5) can call two read-only tools:

    • get_token(chain, address): GeckoTerminal, DexScreener and Montra data for a token.
    • newest_tokens(chain): the latest launches on a chain.

    With Memory switched on, the most relevant saved facts are added to the system prompt.

Custody model

Wren deals with two kinds of wallet. The MCP server has no wallet at all. They have different owners, and the app explains this before anyone funds anything.

WalletWho holds the keyWhere it can act
App wallet (custodial)The Wren server, encrypted with AES-256-GCM under WREN_MASTER_KEY and never sent to the browserBase and Robinhood Chain share one EVM address; Solana has its own
Elysium and HyperEVMNobody in the app: read-onlyMarket data and read tools only

Server signing is off unless WREN_ENABLE_SIGNING=true. When it is on:

  1. A send or swap starts with a quote. The quote returns a single-use confirm token that expires in 120 seconds and is bound to the user and the exact parameters, plus a plain-text confirmMessage.
  2. Executing needs that token and a signature of confirmMessage by the wallet the user signed in with, so a stolen session token cannot move funds.
  3. Swap transactions built by KyberSwap or Jupiter are checked before signing: pinned router, decoded amounts and receiver, minimum output, no fees, and on Solana an allowlist of programs. Anything else is refused unsigned.
  4. The USD value is priced from GeckoTerminal. For swaps, the higher of that price and the aggregator's own valuation is used. Assets with no price are refused.
  5. A per-transaction limit (default $50) and a rolling 24-hour limit (default $200) are checked at quote time and again at confirmation. A broadcast with an unclear result still counts.
  6. Sessions only: API keys and agent runs get 403.
  7. Every attempt, including refused ones, is written to wallet_log.

Sends cover native ETH, ERC-20 tokens, native SOL and SPL tokens (including Token-2022). Swaps use KyberSwap on Base and Jupiter on Solana, both without API keys. Swaps on Robinhood Chain return 501 because no keyless aggregator covers it yet.

MCP server

@wrenagent/mcp (source) brings Wren into Claude, Cursor and any MCP client:

npx -y -p @wrenagent/mcp@0.1.2 wren install
  • Market tools, no key: get_token, newest_tokens, and check_token (GoPlus plus a honeypot.is sell simulation on Base; GoPlus on Robinhood Chain and Solana).
  • Account tools, with an API key: memory, vault and agents, shared with the app.
  • No wallet: none of its 15 tools can sign or move funds.

It is published from GitHub Actions with npm provenance (.github/workflows/publish-mcp.yml). See the docs.

Architecture

flowchart LR
    subgraph Browser["Browser: index.html / app.html / docs.html"]
        UI["Pages and router"]
        LIVE["Live data layer<br/>launchpads · boards · token pages"]
        SAFE["Honeypot screen"]
        BE["Server client<br/>SIWE · Memory · Vault · Agents · Terminal"]
    end

    subgraph Public["Public sources (CORS, no keys)"]
        LP["Launchpads<br/>Montra · Bankr · PumpPortal"]
        MK["Markets<br/>GeckoTerminal · DexScreener · CoinGecko"]
        RPC["Chain RPCs<br/>Elysium · Base · Robinhood · Solana · HyperEVM"]
        SEC["Scanners<br/>GoPlus · honeypot.is"]
    end

    subgraph Server["Wren server (optional, Node 22)"]
        API["Express API"]
        DB[("SQLite")]
        AI["Anthropic Messages API"]
        AGG["KyberSwap · Jupiter"]
    end

    UI --> LIVE --> LP & MK & RPC
    LIVE --> SAFE --> SEC & RPC
    UI --> BE --> API
    API --> DB
    API --> AI
    API --> AGG
    API --> RPC

Project structure

wren/
├── index.html              Landing page; links to app.html and docs.html
├── app.html                The app (generated by scripts/build.sh, committed)
├── docs.html               Documentation site in one file (built from docs-src/)
├── docs-src/               Markdown sources for the docs Guide and Tools pages
├── scripts/
│   └── build.sh            Runs every patch step in order
├── theme/                  Theme tokens and the temple background
├── brand/                  Logo, favicon, chain logos and the brand sheet
├── live/
│   ├── live.js             Live data layer: RPC status, pools, chain pages, radar
│   ├── launchpads.js       Montra, Bankr, Clanker, Pons and pump.fun feeds
│   ├── safety.js           Honeypot screen for every chain
│   ├── tokenpage.js        Token page: chart, trades, RPC swap streaming
│   ├── live.css
│   └── apply_live.py
├── parity/
│   ├── parity.js           Home, Markets, Developers, All chains, navigation
│   ├── backend.js          Sign-in and the server-backed pages
│   ├── parity.css
│   └── apply_parity.py
├── embed_app.py            Links the landing page to app.html and docs.html
├── mcp/                    @wrenagent/mcp, the MCP server published to npm
├── server/                 Optional backend (see server/README.md)
│   ├── src/                Express app, routes, services, chain helpers
│   ├── test/               node:test suites, all network calls mocked
│   └── .env.example
├── assets/readme/          Screenshots used in this README
└── .github/                CI, GitHub Pages deploy, issue and PR templates

Quick start

Just look at it

Download the repository and open index.html in a browser. Click Launch App. Every market page fills with live data straight away; no install and no account are needed.

Serve it locally

A local web server behaves exactly like production hosting:

python3 -m http.server 5173

Then open http://localhost:5173/. app.html opens the app directly and docs.html opens the documentation.

Rebuild after changing the source

The app is assembled from the modules in theme/, brand/, live/ and parity/. Only Python 3 is needed:

./scripts/build.sh

The build is deterministic, and CI checks that the committed app.html and index.html match it.

Running the server

cd server
npm install
cp .env.example .env

Generate a master key and put it into .env as WREN_MASTER_KEY:

openssl rand -hex 32

Start the server and check that it answers:

node --env-file=.env src/index.js
curl http://127.0.0.1:8787/api/health

Then, in the app, open Account → Settings, enter http://127.0.0.1:8787/api, save, and sign in with a browser wallet such as MetaMask or Coinbase Wallet.

To use the AI Terminal, add ANTHROPIC_API_KEY to .env and restart. Without it the Terminal explains that the AI is not configured; every other feature keeps working.

File pages and sign-in. A page opened as a file has no domain of its own, so the signed message uses the domain set in Settings (default localhost:5173). That domain must be listed in WREN_SIWE_DOMAINS.

Configuration

The full list, with comments, is in server/.env.example. These are the ones most people change:

VariableDefaultPurpose
WREN_MASTER_KEYrequired32-byte hex key that encrypts custodial private keys. Losing it makes them unrecoverable.
ANTHROPIC_API_KEYemptyTurns on the AI Terminal.
WREN_MODELclaude-sonnet-5-5Model used by the Terminal.
WREN_FRONTEND_ORIGINhttp://localhost:5173Browser origins allowed by CORS.
WREN_SIWE_DOMAINShosts of the origins aboveDomains accepted in the sign-in message.
WREN_ALLOW_NULL_ORIGINtrueAllows pages opened from file:// (bearer token only).
WREN_DB./data/wren.dbSQLite file. Keep it on a persistent volume.
WREN_ENABLE_SIGNINGfalseMust be exactly true to enable sends and swaps.
WREN_MAX_TX_USD / WREN_MAX_DAILY_USD50 / 200Spend limits.
WREN_RPC_BASE, WREN_RPC_ROBINHOOD, WREN_RPC_SOLANApublic RPCsChain endpoints used by the server.
WREN_RL_*_PER_MIN20 to 300Rate limits for auth, chat, wallet and general routes.

Never commit .env. It is listed in .gitignore.

API overview

All routes are under /api. The complete reference, with request and response bodies, is in server/README.md.

AreaEndpoints
HealthGET /health
AuthGET /auth/nonce · POST /auth/verify · POST /auth/logout · GET /me
MemoryGET /memory · POST /memory · GET / PATCH / DELETE /memory/:id
VaultGET / POST /vault · GET / PUT / DELETE /vault/:id · GET /vault/:id/versions · GET /vault/:id/versions/:v · POST /vault/:id/restore
AgentsGET / POST /agents · GET / PATCH / DELETE /agents/:id · GET / POST /agents/:id/notes
API keysGET / POST /keys · DELETE /keys/:id
TerminalPOST /terminal/chat (Server-Sent Events: meta, text, tool_use, tool_result, refusal, error, done)
WalletGET /wallet · GET /wallet/history · POST /wallet/send/quote · POST /wallet/send · POST /wallet/swap/quote · POST /wallet/swap

Deployment

Frontend on GitHub Pages

The workflow in .github/workflows/pages.yml publishes index.html, app.html, docs.html and the brand assets on every push to main.

  1. Push the repository to GitHub.
  2. Open Settings → Pages and set Source to GitHub Actions.
  3. The site appears at https://<user>.github.io/<repo>/. Add a custom domain in the same screen if you have one.

Any static host works the same way, for example Netlify, Vercel, Cloudflare Pages or an S3 bucket: there is nothing to build at deploy time.

Server

The server runs on any Node 22 host, such as Railway, Render, Fly.io, a VPS or a container.

  • Run npm ci --omit=dev && node src/index.js and keep the SQLite file on a persistent volume.
  • Serve it over HTTPS. Set NODE_ENV=production, WREN_FRONTEND_ORIGIN=https://your-site, WREN_SIWE_DOMAINS=your-site-host and WREN_TRUST_PROXY.
  • Turn off response buffering for /api/terminal/chat so the stream reaches the browser.
  • Run a single instance: SQLite and the rate limiter are per process.
  • Back up the database and WREN_MASTER_KEY, and store them separately.

Testing

Server: 28 tests with node:test. They cover sign-in edge cases (reused nonce, wrong domain, expired message, forged signature), Memory and Vault versioning, the API-key cap, agents, key encryption round-trips, the signing kill-switch, spend limits and confirm tokens, and the Terminal stream. Every outbound request is mocked, so nothing is ever broadcast and the Anthropic API is never called.

cd server && npm test

Frontend: checked in headless Chromium:

  • Every route renders without page errors, with no sideways scroll at 390px, in light and dark mode.
  • Every route renders at 1440px and at phone size, opened from disk and over HTTP.
  • Live trades on token pages arrive within a few seconds of the chain.

CI (.github/workflows/ci.yml) runs the server tests and checks that the committed HTML matches the build.

Data sources

SourceUsed forKey needed
Montra APIElysium launches, tokens, trades, candles, platform totalsNo
Bankr discover APIBase launchesNo
Clanker factory eventsBase launches (read from the Base RPC)No
Pons factory and curve eventsRobinhood Chain launches, bonding curves, tradesNo
PumpPortal WebSocketpump.fun launches on SolanaNo
GeckoTerminal APIPools, prices, candles, trades on every chainNo (about 30 requests/min)
DexScreener APIPrices, liquidity and name searchNo
CoinGecko APISOL, ETH and major asset pricesNo
GoPlusToken and address security on Base and Robinhood ChainNo
honeypot.isBuy and sell simulation on BaseNo
Public RPCsBlocks, gas, logs, eth_call simulation, Solana accounts and logsNo

Known limitations

  • Tokens seen, not indexed. The All chains strip counts tokens loaded in the current session. Wren has no catalog of its own.
  • Elysium screening. The Elysium sell-path simulation catches blocked sells but does not measure taxes, and it has not yet been tried against a real Elysium honeypot.
  • Trader column. On swaps read from the RPC, the trader column can show a router address instead of the end wallet.
  • No send or swap form yet. The wallet page shows addresses, balances and signing status. The server's send and swap endpoints are in place, but the app has no form for them.
  • Agents do not run on their own. Schedules are stored; nothing executes them yet.
  • Demo pages. Billing, Stake, API Market and Skills are still demonstration pages.

Roadmap

Each item is tracked as an issue. Comments and pull requests are welcome.

  • Send and swap forms in the app, with quote preview and confirmation (#2)
  • Scheduled agent runner, read-only tools that never move funds (#3)
  • Sell-tax measurement in the Elysium simulation (#4)
  • Publish the Wren MCP package (#5): @wrenagent/mcp
  • Swap support on Robinhood Chain once a keyless aggregator covers it (#6)
  • Billing and API Market backed by the server (#7)

Contributing

Pull requests are welcome. CONTRIBUTING.md explains the build chain, where each feature lives, and the rules that keep Wren safe. In short: no public CORS proxies, no secrets in code, unknown is never shown as safe, and nothing signs by default.

Security

Please report vulnerabilities privately through GitHub's Report a vulnerability button, not in a public issue. SECURITY.md describes the full security model.

Disclaimer

Wren is research software. Nothing in it is financial advice. Newly launched tokens are extremely risky: a token that passes every check can still lose all of its value. The honeypot screen and the risk score reduce risk; they do not remove it. If you run the server with signing enabled, you hold other people's keys: check the legal obligations where you operate first.

License

Released under the MIT License.

NPM
@wrenagent/mcp
Install Command
npm install @wrenagent/mcp