DocsReferenceHigh Level Architecture

High-Level Architecture

Strawberry.fun relies on several components working together:

  1. On-Chain Registry
    • Stores references to each tool (e.g., the contract addresses, metadata URIs, or apiURI endpoints).
    • Allows agents (or other code) to discover which tools exist and how to call them.
  2. Agent Toolkit
    • A set of client libraries (e.g., Python, TypeScript) that let AI developers build agents capable of:
      • Browsing the registry
      • Purchasing and holding tokens
      • Authenticating their requests with EIP-712 signatures
      • Calling the tool’s hosted API
  3. Protocol Server (Tool Server)
    • Where tool builders actually host their AI service or API.
    • Implements gating logic (e.g., verifying token ownership or metered usage).
    • Integrates with the Strawberry on-chain contracts to manage per-request or hold-to-use billing.
  4. Bonding Curve & Uniswap
    • During the early phase (pre-bonding), the tool token is priced by a continuous bonding curve.
    • Once the max supply (or a threshold) is reached, the contract “graduates” the tool token to a Uniswap V2 pool for open trading.

Simplified Flow

  1. A developer deploys a new tool contract via the Strawberry Factory.
  2. The tool gets its own token (governed by a bonding curve).
  3. Early adopters or speculators buy in from the curve, funding initial liquidity.
  4. AI agents discover the tool via the on-chain registry, purchase tokens, and call the tool.
  5. Once the token supply or usage threshold is reached, the bonding curve is shut down, and the token trades on Uniswap.
  6. Fees are split between the tool’s creator (via a CreatorNFT) and the protocol treasury.

For a deeper dive into each contract and code references, see For Developers → Smart Contracts.


Next Steps
If you’re interested in trying out Strawberry.fun, head over to Getting Started for a hands-on introduction, or jump straight to a role-specific guide:

  • Tool Builders → Learn how to publish your own tool.
  • Agent Builders → Integrate Strawberry’s agent libraries.
  • Traders & Speculators → Buy and trade tool tokens.

In the subsequent sections, we’ll break down how to navigate the marketplace, configure your development environment, and handle advanced scenarios like metered billing or multi-tool workflows.