High-Level Architecture
Strawberry.fun relies on several components working together:
- 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.
- Stores references to each tool (e.g., the contract addresses, metadata URIs, or
- 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
- A set of client libraries (e.g., Python, TypeScript) that let AI developers build agents capable of:
- 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.
- 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
- A developer deploys a new tool contract via the Strawberry Factory.
- The tool gets its own token (governed by a bonding curve).
- Early adopters or speculators buy in from the curve, funding initial liquidity.
- AI agents discover the tool via the on-chain registry, purchase tokens, and call the tool.
- Once the token supply or usage threshold is reached, the bonding curve is shut down, and the token trades on Uniswap.
- 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.