Skip to content
@Langclaw-AI-Celo

Langclaw AI Celo

Langclaw

Multi-chain AI alpha, data, and strategy intelligence for Mantle and Celo.

Langclaw is a wallet-authenticated AI agent workspace for Mantle and Celo. It analyzes smart-money flow, liquidity anomalies, protocol momentum, and DEX pair history, then turns the result into source-backed alpha briefs, watchlist signals, Dune-backed strategy backtests, paper-trading orders, and on-chain proof records.

The current hackathon build is intentionally analysis-first. It does not execute live-funds trades. Strategy Lab produces backtests and deterministic paper-trade proofs so signals can be evaluated without custody or execution risk.

All public repos in this organization now include a project-level MIT LICENSE file. For the current Celo eligibility runbook, see backend/docs/CELO_ELIGIBILITY.md.

Repositories

Organization: Langclaw-AI-Mantle

Repository Stack Port README
frontend Next.js, React, RainbowKit, AI SDK 3000 README
backend Node HTTP API, TypeScript, Supabase, OpenAI, OpenClaw 3001 README
contracts Foundry, Solidity proof contracts N/A README

This workspace can be run as a monorepo with frontend/, backend/, and contracts/ as sibling folders, or as three separate clones from the organization above.

What Langclaw Does

Area What users get
On-chain Intelligence Smart-money and holder-flow summaries, liquidity anomaly checks, TVL/yield momentum, evidence cards, confidence, risk notes, and source gaps across Mantle and Celo
Alpha Watchlist Supabase-backed saved signals for follow-up monitoring
Strategy Lab Dune-backed liquidity momentum backtests, equity curve, trade table, win rate, drawdown, latest signal, and paper-trade opening
Proof Center Registry decision history and strategy proof records linked to the Langclaw ERC-8004 agent identity
Usage billing Internal usage ledger with optional Mantle MNT or Celo USDT vault deposit verification

For Judges And Reviewers

Fast path:

  1. Open the deployed app, or run the local stack below.
  2. Connect an EVM wallet on Mantle mainnet, chain ID 5000, or open the app inside MiniPay on Celo mainnet, chain ID 42220.
  3. Open the intelligence workspace in chat and use the chain that matches your wallet or demo flow.
  4. Run one of the demo prompts below.
  5. Inspect the evidence, source gaps, agent decision proof, Alpha Watchlist, Strategy Lab, Proof Center, and the selected-chain usage flow.

Demo prompts:

Current research prompts focus on Mantle market analysis, while Celo is live in wallet auth, proof anchoring, MiniPay, and USDT billing.

Analyze holder flow and smart-money signals on Mantle token 0x5d3a1Ff2b6BAb83b63cd9AD0787074081a52ef34
Detect liquidity anomaly on Mantle pair 0xeAfc4D6d4c3391Cd4Fc10c85D2f5f972d58C0dD5
Rank Mantle protocols by TVL and yield momentum

Strategy Lab demo:

Open /strategy, select the sample Mantle DEX pair, provide a Dune query ID if the backend env does not set one, run a backtest, then open a paper trade from the latest signal.

Deployed Proof Layer

Item Value
Mantle chain ID 5000
Mantle LangclawRegistry 0xe69755e4249c4978c39fbe847ca9674ce7af3505
Registry deployment tx 0xf6f8af14295c86d2f358c32ba15d0669903b122c086dcb0b432d9df8aaec6b6c
Mantle LangclawTradingJournal 0xe96e9b76af8c8f32bfa2235d647186826d92fb7d
Mantle LangclawUsageVault 0x7e93Ef361e7b54297cF963977bA829E47E59e8E1
Celo chain ID 42220
Celo LangclawRegistry 0xe69755e4249c4978c39fbe847ca9674ce7af3505
Celo LangclawTradingJournal 0x69984c20176704685236fd633192d7de1c13a5ec
Celo LangclawUsageVault 0x837a2948586de4e7638c742f99e520ffc049bcf7
Celo USDT deposit token 0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e
Celo USDT vault deployment tx 0xac09eb4b164b51818775cc7f73a33cbdf88428cdc3d853c5ae7ec34999c3e6b2
ERC-8004 identity registry 0x8004A169FB4a3325136EB29fA0ceB6D2e539a432
Mantle Langclaw ERC-8004 agent ID 94
Celo Langclaw ERC-8004 agent ID 9109
Agent owner / recorder 0x2cA915EF6be8D2D48ccD3c5dAF715546AF873A4c

Live decision proof examples:

Decision Signal Transaction
0 smart-money 0x8a598de98fac01d53e696df67a9527de280c4d8cece72ccc4ced91164efa5187
1 smart-money 0x39caaca5fe3a6792c427740342116f309ac02ee0a846c7dbe54f12c86a39a177
2 liquidity-anomaly 0x9956a7574f6144ce831deac3275305939d65503366bc11bd922bc4783eeb5faf

Each LangclawRegistry decision stores the ERC-8004 agentId, Langclaw runId, deterministic decisionHash, evidence URI, signal type, recorder wallet, and block timestamp.

Celo Eligibility Snapshot

  • All three live Celo contracts are deployed and source-verified on Celoscan: LangclawRegistry, LangclawTradingJournal, and the USDT-backed LangclawUsageVault.
  • The live Celo usage vault address is 0x837a2948586de4e7638c742f99e520ffc049bcf7 and its deposit token is USDT at 0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e.
  • The Celo ERC-8004 agent is already registered as agent ID 9109, backed by the same dedicated agent wallet used for on-chain proof and journal activity.
  • The remaining Celo eligibility blocker is Self Agent ID registration and its proof flow completion. See the runbook in backend/docs/CELO_ELIGIBILITY.md.

On-Chain Data Sources

Source Purpose
Etherscan-style API Mantle and Celo chain reads with the selected chain ID
DEX Screener DEX pair liquidity, price, and market context
DeFiLlama Protocol TVL and yield context
Dune Historical rows for Strategy Lab backtests and pair scans
Alchemy Optional chain and token enrichment
GoPlus Optional token and security risk checks
Brave, Tavily, GitHub Optional supporting discovery for broader research context

Provider failures are shown as source gaps instead of hidden. The UI separates usable evidence from missing or unconfigured data sources.

Quick Start

Backend:

cd backend
cp .env.example .env
npm install
npm run dev

Frontend:

cd frontend
cp .env.example .env.local
pnpm install
pnpm dev

Contracts:

cd contracts
git submodule update --init
forge build
forge test

Smoke check:

curl http://localhost:3001/health
# {"ok":true,"service":"langclaw-backend"}

Open http://localhost:3000, connect a wallet, and sign the Langclaw login message.

Environment

Core backend variables:

OPENAI_API_KEY=
OPENAI_CHAT_MODEL=gpt-5-mini
OPENAI_AGENT_MODEL=gpt-5.2
SUPABASE_URL=
SUPABASE_SERVICE_ROLE_KEY=
LANGCLAW_API_KEY_PEPPER=
CORS_ORIGIN=http://localhost:3000

Current chain proof and data variables:

MANTLE_CHAIN_RPC_URL=https://rpc.mantle.xyz
MANTLE_CHAIN_ID=5000
MANTLE_ERC8004_AGENT_ID=94
MANTLE_LANGCLAW_REGISTRY_ADDRESS=0xe69755e4249c4978c39fbe847ca9674ce7af3505
MANTLE_LANGCLAW_USAGE_VAULT_ADDRESS=0x7e93Ef361e7b54297cF963977bA829E47E59e8E1
MANTLE_LANGCLAW_TRADING_JOURNAL_ADDRESS=0xe96e9b76af8c8f32bfa2235d647186826d92fb7d
MANTLE_TRADING_JOURNAL_ENABLED=true
CELO_CHAIN_RPC_URL=https://forno.celo.org
CELO_CHAIN_ID=42220
CELO_ERC8004_AGENT_ID=9109
CELO_LANGCLAW_REGISTRY_ADDRESS=0xe69755e4249c4978c39fbe847ca9674ce7af3505
CELO_LANGCLAW_USAGE_VAULT_ADDRESS=0x837a2948586de4e7638c742f99e520ffc049bcf7
CELO_LANGCLAW_TRADING_JOURNAL_ADDRESS=0x69984c20176704685236fd633192d7de1c13a5ec
CELO_TRADING_JOURNAL_ENABLED=true
DUNE_API_KEY=
DUNE_DEFAULT_QUERY_ID=
DUNE_STRATEGY_QUERY_ID=
ALCHEMY_API_KEY=
ETHERSCAN_API_KEY=
GOPLUS_API_KEY=
GOPLUS_API_SECRET=

Frontend variable:

NEXT_PUBLIC_LANGCLAW_API_URL=http://localhost:3001

See the repo env templates for the full list:

Architecture

User -> Frontend (:3000) -> Backend API (:3001)
                              |-> Supabase: sessions, memory, API keys, usage ledger, watchlist
                              |-> OpenClaw: planner, scorer, evidence, verifier
                              |-> OpenAI Responses: chat and synthesis
                              |-> On-chain data providers: Dune, DEX Screener, DeFiLlama, Alchemy, Etherscan, GoPlus
                              |-> LangclawRegistry: agent decision proof
                              |-> LangclawTradingJournal: strategy and paper-trade proof
                              |-> LangclawUsageVault: optional MNT billing on Mantle and USDT billing on Celo

API Surface

Backend base URL defaults to http://localhost:3001.

Area Endpoints
Health GET /health
Chat POST /api/chat/stream, POST /api/chat/sessions
On-chain Intelligence POST /api/discover, POST /api/discover/stream
Strategy Lab POST /api/strategy/backtest, scan-pairs, paper-trade, runs
Wallet auth POST /api/wallet/challenge, POST /api/wallet/session
API keys POST /api/api-keys
Memory POST /api/memory, POST /api/memory/settings
Usage POST /api/usage/balance, quote, deposit/verify, withdraw/request
Automation POST /api/automation/*, Telegram webhook

Full shapes: API_REFERENCE.md.

Smart Contracts

Contract Purpose
LangclawRegistry Records selected-chain AI decision proofs and signal categories
LangclawTradingJournal Records selected-chain Strategy Lab backtests and paper-trading outcomes
LangclawUsageVault Optional MNT billing vault on Mantle and USDT billing vault on Celo

Deploy examples and contract details: contracts README.

Verification

cd backend
npm run typecheck
npm test
cd frontend
pnpm typecheck
pnpm build
cd contracts
forge build
forge test

Security Notes

  • Keep provider keys, Supabase service role keys, API key pepper, and private keys on the backend only.
  • API keys are stored as HMAC hashes using LANGCLAW_API_KEY_PEPPER.
  • Use a dedicated recorder wallet for proof writes.
  • Use a multisig owner for production contract ownership.
  • Never commit .env files.

Additional Docs

Document Description
HACKATHON_SUBMISSION.md Submission summary and scoring coverage
DEMO_SCRIPT.md 3 to 4 minute demo script
API_REFERENCE.md Backend API reference
LANGCLAW_BLUEPRINT.md Mantle hackathon product blueprint
openclaw/README.md OpenClaw workflow workspace

Links

License

TBD

Popular repositories Loading

  1. frontend frontend Public

    TypeScript

  2. .github .github Public

  3. backend backend Public

    TypeScript

  4. contracts contracts Public

    Solidity

Repositories

Showing 4 of 4 repositories

Top languages

Loading…

Most used topics

Loading…