Skip to content
@Lilly-Protocol

Lilly Protocol

Autonomous agent finance infrastructure on Stellar

Lily Protocol

Lily Protocol

Autonomous agent finance, natively on Stellar.

Website · Design (Figma) · Pitch (YouTube)

Stellar Soroban SAC stroops USDC XLM open source


Autonomous agents that hold wallets and settle payments on Stellar

Lily Protocol is building the agent finance layer of the Stellar ecosystem. It gives AI agents what they need to operate in the real economy on-chain: a Stellar wallet bound by on-chain policy, a verifiable Soroban identity, and USDC / XLM settlement — all orchestrated by an autonomous agent runtime and exposed through typed APIs.

Agents run on Stellar-native rails end to end: every AgentLily is provisioned with a Stellar account address, quotes payments at Stellar's 7-decimal stroop precision, and settles against Stellar assets (USDC, native XLM) through a Soroban contract layer that records identity, wallet policy, and payment intents on the ledger.

     AgentLily (autonomous finance agent)
        │  tasks · tools · events              agentlily-runtime
        ▼
     Lily Protocol API                         lily-backend
        │  Stellar G… identities · stroop-precision USDC/XLM quoting
        ▼
     Soroban contracts on Stellar              lily-contracts
        │  identity · wallet policy · payment intents · escrow
        ▼
     Stellar network — USDC · XLM · Soroban RPC · ledger events

Deep Stellar integration

Every layer of the stack maps onto a real Stellar primitive:

Stellar primitive Where Lily uses it
Stellar account (G…) Every AgentLily is given a deterministic Stellar-format account address; backend APIs validate G… addresses with Stellar's base32 + CRC-16/XModem checksum scheme before any payment flow.
Soroban smart contracts (Rust) lily-contracts ships on-chain contracts for agent identity, wallet-policy bindings + spend limits, and payment-intent settlement, built with soroban-sdk and deployed with stellar-cli.
Stellar Asset Contracts — USDC & native XLM The payment assets Lily quotes and settles. The backend and SDK model native XLM (no issuer) vs issued USDC (56-char G… issuer) exactly as the ledger does.
Stroop precision (7 decimals) Amounts are validated at 7-decimal stroop precision in API schemas and SDK MoneyAmounts — decimal strings, never floats — mirroring Stellar's 10^-7 XLM smallest unit.
SEP asset semantics MoneyAmount encodes Stellar's (assetCode, assetIssuer) identity and SEP-1 home_domain discovery so issuers resolve like they do on the network.
Stellar testnet + Soroban RPC Testnet-first development everywhere: stellar-testnet wallet provisioning in the SDK, a Soroban RPC health script in lily-contracts, and CI-verified test suites.
Stellar wallet (Freighter, planned) The frontend roadmap connects browser wallets so controllers authorize AgentLily Stellar transactions from the dashboard.

Why Stellar

  • Non-custodial by design — an AgentLily's funds live in its own Stellar wallet, governed by on-chain policy rather than a platform's hot wallet.
  • Real settlement rails, today — USDC and native XLM via Stellar Asset Contracts, the same assets consumers and anchors already use.
  • Verifiable on-chain identity — agents register on the ledger (Soroban), so counterparties can audit who an agent is, what it's allowed to spend, and what it has done.
  • Built the Stellar way — Rust + soroban-sdk, stellar-cli workflows, testnet-first development, and SEP-aware asset semantics across the whole stack.
  • An open-source ecosystem project — every repository ships CI, typed contracts, tests, contributor docs, and a scoped issue backlog for community builders.

What we are building

Layer Repository Role on Stellar
Contracts lily-contracts Rust Soroban contracts: on-chain agent identity, wallet-policy bindings + spend limits, payment-intent settlement, escrow design
Backend lily-backend API that provisions AgentLily Stellar identities (G…), validates Stellar checksums, and quotes/executes USDC & XLM payments
Runtime agentlily-runtime Execution layer for AgentLily instances — tasks, typed tools, and Stellar wallet.prepare_payment
SDK lily-sdk TypeScript SDK with stellar-testnet provisioning and stroop-precision MoneyAmount (XLM vs USDC)
Frontend lily-frontend Next.js dashboard where controllers manage agents, Stellar wallets, and USDC/XLM payments

Repository status

Repository CI License
lily-contracts CI Apache-2.0
lily-backend CI ISC
agentlily-runtime CI Apache-2.0
lily-sdk CI MIT
lily-frontend CI Apache-2.0

Stellar roadmap

Where the stack is heading on Stellar next:

  • On-chain settlement — token-transfer settlement against USDC / native XLM via Stellar Asset Contracts in contracts/payments.
  • Escrow to production — graduate contracts/escrow from invariant design waves (milestones, disputes, quorum) into audited Soroban entry points.
  • Mainnet deployment — deployment manifests and release signing for Stellar mainnet, with stellar-cli artifacts and ledger addresses.
  • Live agent wallets — real AgentLily balances and USDC/XLM transaction history on the dashboard.
  • Freighter authorization — approve AgentLily Stellar transactions from the browser wallet in lily-frontend.

Stack

  • Chain: Stellar / Soroban (testnet-first, mainnet-ready)
  • Contracts: Rust (soroban-sdk, stellar-cli)
  • Services & SDK: TypeScript, Node.js
  • App: Next.js, React
  • Assets: USDC + native XLM via Stellar Asset Contracts

Status

Open-source foundation work across the stack. Repositories are structured for contributors, with CI, typed APIs, and clear extension points while core protocol surfaces continue to mature toward Stellar mainnet deployment.

Contribute

  1. Pick a repository from the table above
  2. Read its README, CONTRIBUTING, and open issues
  3. Open a focused pull request against main

Questions, proposals, and Stellar ecosystem collaboration are welcome via GitHub Issues on the relevant repository.

Popular repositories Loading

  1. agentlily-runtime agentlily-runtime Public

    Stellar-aware execution runtime for AgentLily autonomous finance agents — TypeScript task runner, typed tools, and Stellar payment preparation for Lily Protocol

    TypeScript 49 41

  2. lily-contracts lily-contracts Public

    Soroban smart contracts for Lily Protocol on Stellar — on-chain agent identity, wallet policy, and payment-intent settlement primitives for autonomous agents

    Rust 1 36

  3. lily-sdk lily-sdk Public

    TypeScript SDK for Lily Protocol's Stellar-native agent finance APIs — AgentLily wallets, USDC/XLM payments with stroop-precision MoneyAmounts, identity, and health

    TypeScript 1 44

  4. .github .github Public

    Organization profile and shared GitHub community assets for Lilly Protocol

  5. lily-backend lily-backend Public

    Backend API for Lily Protocol — Stellar-native finance for autonomous AI agents. AgentLily Stellar identities, USDC/XLM payment quoting, checksum-validated Stellar addresses

    TypeScript 59

  6. lily-frontend lily-frontend Public

    Frontend for Lily Protocol — Stellar-native agent finance dashboard. Manage AgentLily agents, Stellar wallets, and USDC/XLM payments (Next.js)

    TypeScript 40

Repositories

Showing 6 of 6 repositories

Top languages

Loading…

Most used topics

Loading…