AI trading app · permission-gated harness

Trade with AI.
Never lose control.

Koyal is the full-stack control plane for AI-enhanced crypto trading a multi-chain mobile command center and a local-first Rust harness that turns natural language into gated, fleet-ready bots.
install · gitlawb source
$git clone https://node.gitlawb.com/z6MksSLzbTjj4VQMQiUCsJ5Nhh3PTB3Y3Put2tUJLxe8wMo6/koyal.git
$cd koyal && ./install.sh

builds from source · no prebuilt binaries · then koyal doctor

Open on gitlawb
55+
AI providers
<50MB
Rust binary
0
Custody default
Strategy DeskTradeGateShadow ModePermission EngineVault BibleMCP GatewayFleet MonitorApproval PlaneStrategy DeskTradeGateShadow ModePermission EngineVault BibleMCP GatewayFleet MonitorApproval Plane
HyperliquidJupiterUniswapPolymarketSolanaBaseArbitrumEthereumHyperliquidJupiterUniswapPolymarketSolanaBaseArbitrumEthereum
0+
AI providers
priority routing + failover
0
CLI commands
doctor → halt → reconcile
0
Rust crates
trait-bound workspace
0+
Chains & venues
SOL · EVM · HL · PM
<0MB
Single binary
zero-runtime overhead
0
Custody by default
keys never leave you
Product

One vision. Two surfaces.

Harness for control. App for command. Models propose — policies constrain — you arm live when ready.

Trading Harness

Zero-overhead Rust control plane. Prompt → draft → TradeGate → fleet. Shadow mode, OOB approvals, MCP gateway — single binary under 50MB.

Rust
CLI + Web
MCP
Shadow

AI Trading App

Multi-chain wallet, portfolio pulse, AI companion. Review proposals and steer the fleet without surrendering keys to a black box.

Flutter
8+ chains
Approvals
Chat
$ koyal bot setup --strategy "SOL DCA"
→ compiled · draft · TradeGate pending
$ koyal fleet status
● jup_sol shadow · +1.2%
Strategy Desk
Natural language → compiled bots. Venues, risk, loops — same pipeline as MCP setup_bot.
TradeGate
Size, slippage, exposure, venue/pair. Fail-closed by default.
Mobile command
Wallet, portfolio, agent chat, approve/reject from your pocket.
Fleet intelligence
Tick health, PnL sparklines, shadow sims, global halt — one desk.
Shadow mode

Full tick path. Zero signatures. Would-trade only.

Vault bible

Soul, memories, learnings composed every tick.

55+ providers

Priority routing, failover, encrypted credentials.

CLI first

Twenty commands. Total control.

Every surface — chat, web, MCP agents — funnels into the same gated CLI pipeline. What you can type, you can audit.

koyal — zsh
$
agent-tick · executor · ai · trade · wallethalt · gateway · memory · bot · vaultfull cli reference →
Mobile app

Your fleet, in your pocket

The human surface on the harness — portfolio, chat, and approvals wherever you are.

Multi-chain wallet

Solana, ETH, Base, Arbitrum, HyperEVM — unified net worth.

AI agent chat

Talk to your self-hosted gateway about positions and risk.

Approvals on the go

Every proposal surfaces for approve or reject.

Keys stay yours

Non-custodial surface. Policies live in the harness.

9:41● live
Net worth
$47,392
+12.4% this week
SOLETHBASEHL
Fleet equity2 bots
PENDING APPROVAL
jup_sol · buy SOL
1.8% size · TradeGate ✓ · shadow +0.4%
Reject
Approve
trader1
Vol spike — tighten max size to 1% or halt?
SHADOW
+1.2% sim
HALT
1 tap
System

From idea to fleet — without black boxes

Every step is inspectable, reversible, and permissioned.

01 · PROMPT

Strategy Desk

Describe your edge in natural language. The desk compiles venues, pairs, risk limits, and loop blueprints.

02 · DEPLOY

Draft bot

Bot lands as draft with wallet roles unset. Humans and MCP agents share the same gated pipeline.

03 · ARM

TradeGate + Shadow

Size, slippage, exposure, and venue checks. Shadow mode dry-runs the full path with zero signatures.

04 · FLEET

Monitor · Halt

Tick health, PnL, per-bot controls, global kill switch. Approvals fail closed on live capital.

FAIL-CLOSED

Autonomous ≠ unsupervised

AI speed with institutional guardrails. Capital only moves on explicit paths.

  • PermissionEngine: Agent → Bot → Wallet roles
  • TradeGate: size · slippage · exposure · venue/pair
  • OOB approvals + fill reconcile
  • Shadow mode: full path, zero signatures
  • Global halt — one command freezes everything
Architecture

Eleven crates. One harness.

A trait-bound Rust workspace. Hover any crate to inspect its role in the pipeline.

cargo build --release --locked
Surfaces
Traits
Core
Blueprints
koyal-runtime
Harness

CoreHarness + PermissionEngine v2 + tick loop + bible compose + RAG. Every run loads soul, memories, learnings, and bot-scoped loops.

CLI + Web + Gateway
koyal-api (traits)
config · memory · providers · core · chains/dexes/exchanges
runtime → integrations (blueprints)
Venues & stack

Multi-chain by design

First-class adapters — not afterthoughts. Typed crates for every venue.

koyal-chains · koyal-dexes · koyal-exchanges
SOL
Solana

Jupiter v6 · pump.fun · Meteora · Raydium

EVM
Ethereum & L2s

alloy · Uniswap v3/v4 · multi-RPC

HL
Hyperliquid

Perps · positions · leverage

PM
Polymarket

CLOB · conditional tokens

  • Permission-gated AI is the only way institutions will let agents near capital.
    Operator thesisControl plane
  • Shadow mode through production code paths beats paper trading in a sandbox.
    Risk engineeringDry-run fidelity
  • MCP agents should share the same TradeGate as the human desk — not a side door.
    IntegrationMCP-ready
  • Local-first harness, mobile surface — speed without surrendering custody.
    ProductDual surface
Why Koyal

Control planes, compared

Black-box bots ask for your keys. Scripts give you no guardrails. Koyal is the middle path: AI speed, institutional constraints.

CapabilitykoyalBot SaaSRaw scripts
Self-hosted, local-first
Non-custodial by defaultdiy key handling
Permission-gated execution (TradeGate)size · slippage · exposure · venue
Shadow mode on production paths
MCP agents share the human pipeline
55+ AI providers with failover
Multi-chain venues (SOL · EVM · HL · PM)
Global kill switch
Single auditable binary
Open source (MIT / Apache-2.0)
What's new

Shipping relentlessly

Highlights from the v0.1.0 cycle — straight from the changelog.

v0.1.0 — unreleased
v0.1.0
execution

Live execute path — OOB approvals + reconcile + shadow

  • OOB approval on execute — ApprovalPlane oneshot, fail-closed 120s timeout
  • Fill reconcile before journaling — unverified fills never book positions
  • TradeMode::Shadow — full path, would-trade metrics, zero signatures
v0.1.0
strategy desk

Prompt → bot → monitor, one pipeline

  • compile_prompt: natural language → style, venues, pairs, risk, checklist
  • Shared deploy_strategy_inner for HTTP and MCP setup_bot
  • Fleet monitor: lifecycle, PnL, equity sparklines, per-bot halt
v0.1.0
hardening

Trader harness hardening

  • CAS loop claims — no double-fire of the same agent loop
  • Gateway security headers + SSRF guard + protected fs paths
  • Bot-scoped tools with venue fail-closed
latest
dashboard

Control-desk upgrades

  • TradingDesk: quote → propose → approve/execute on home
  • WS-driven ActivityFeed + sidebar status strip
  • g-Key navigation + expanded ⌘K palette (tick / halt / flatten / doctor)
v0.1.0
data

CoinGecko + DefiLlama tools

  • Prices, markets, trending, history via CoinGecko
  • Protocols, TVL, yields, fees via DefiLlama
  • Keyless public endpoints; keys raise rate limits
v0.1.0
fees

Low-cost tx fees + custom RPC

  • FeePreference economy default; EIP-1559 plans with L2 tip caps
  • Jupiter auto priority + dynamic CU limits
  • Per-chain custom RPC with Test / Save / Clear
Gitlawb

Source of truth on a decentralized git network

Koyal lives on gitlawb — clone, install, and push without a central forge. Operators and coding agents share the same DID-native workflow.

DID-signed source

Repo identity is a did:key. Pushes are Ed25519-signed — not a corporate SaaS username.

Fast prebuilt path

install.sh uses dist/bin/<target>/koyal when present. Apple Silicon installs in seconds.

gl + gitlawb://

Identity, register, PRs, and git-remote-gitlawb — same network for agents and humans.

No forced host

Decentralized node, no single point of failure for the product distribution story.

install · terminal
$git clone https://node.gitlawb.com/z6MksSLzbTjj4VQMQiUCsJ5Nhh3PTB3Y3Put2tUJLxe8wMo6/koyal.git
$cd koyal && ./install.sh

then: export PATH="$HOME/.koyal/bin:$PATH" · koyal doctor

Install

Clone. Build. Tick.

Source on gitlawb — decentralized git, keypair identity, no single point of failure.

$git clone https://node.gitlawb.com/z6MksSLzbTjj4VQMQiUCsJ5Nhh3PTB3Y3Put2tUJLxe8wMo6/koyal.git
$cd koyal && ./install.sh

gitlawb · prebuilt arm64 when present, else cargo from source

verify: koyal doctor {"status":"ok","harness":"rust"} · SHA256SUMS + CycloneDX SBOM per release

FAQ

Questions, answered

Custody, safety rails, venues, and operations — the things traders actually ask before arming capital.

The thesis

AI should accelerate traders — not replace judgment.

Models propose. Policies constrain. You decide when capital moves.