XYO AI SDK - Quick Start

Install for Claude Code

Use Claude Code's built-in plugin marketplace to install the XYO skills, then build a full XL1 dApp from a single prompt.

If you use a different AI coding agent (Cursor, Codex, Copilot, Windsurf, etc.), please follow the skills.sh instructions with a CLI instead. This page covers the Claude Code–specific install path.

Before you start

You'll need:

  • Claude Code installed on your machine (desktop app or CLI — the marketplace flow works the same in both)

  • An X/Twitter account to request testnet tokens later from the XL1 Token Faucet

  • Some time — the install takes a few minutes seconds; the example prompt was crafted by our XYO developers to build an entire dApp in about an hour.

1. Install the XYO Skills

If you use just the desktop UI, please skip the CLI instructions and instead move to the "Claude Desktop app" Instructions.

Claude Code CLI

# Add the marketplace
/plugin marketplace add XYOracleNetwork/xyo-claude-plugin

# Install the XL1 skill stack
/plugin install xyo-skills

Claude Desktop app

The /plugin slash commands aren't available in the Claude Code desktop app — use the Customize panel instead:

  1. Click Customize in the left sidebar.

    Customize in the sidebar

  2. Under Personal plugins, click the + button.

    Personal plugins add button

  3. Choose + Create plugin.

    Create plugin menu option

  4. Choose Add marketplace.

    Add marketplace submenu option

  5. In the URL field, paste https://github.com/XYOracleNetwork/xyo-claude-plugin and click Sync.

2. Create a Folder to Your Demo Output

Claude will ask you for a folder or destination for the output of your prompt. Create a new folder on your computer. We recommend creating a folder named xyo-ai-sdk-prediction-market-demo .

You'll use this new folder on the next step.

3. Open a new Claude Code session

For Claude Code to pick up the newly installed skills, open a fresh session. In the desktop app, open a new tab in the same project. In the CLI, exit and re-launch claude in the same directory.

This step matters — Claude Code only scans for skills at session start.

Make sure you select the new folder you just created so Claude builds your demo there!

4. Run the Prediction Market Prompt

This prompt is designed to run a prediction market-esque dApp on XYO Layer One's Sequence testnet.

Note: This prompt is lengthy, because we added lots of extra details to help explain what's happening on XYO Layer One. Feel free to give it a read! You'll get to review some of the phrases we use to trigger behaviors in the XYO AI SDK to keep it optimal and efficient.

Paste this prompt into the new session:

Claude pulls from the skills automatically:

  • xl1-scaffold lays down a pnpm monorepo with a React frontend, an xl1-service backend, and a shared TypeScript library

  • xl1-patterns wires up the commit-reveal flow and splits the chain indexing between browser and service

  • xl1-knowledge derives accounts zero and one from the generated mnemonic and constructs the gateway

  • xyo-knowledge shapes the Bound Witness payloads that go on the sequence

  • xy-toolchain and xy-development apply the ESLint, TypeScript, and Vitest baseline

5. Fund Your Wallet & Wait for the Build to Complete

Once the demo is done building, you'll need to fund the local wallets that are generated for the demo. We recommend downloading the XL1 Wallet, so you can fund them on the fly.

  1. Request Sequence Testnet Tokens (The instructions are pinned on this X Account)

  2. Go grab a snack!

The demo normally takes about 30-40 minutes to build on our computers, so now's the perfect time to go watch an episode of your favorite television show, grab a quick coffee, or find a late-night snack!

6. Fund the New dApp Wallets & Test the dApp!

When the build finishes, the UI displays the wallet addresses that can play your dApp. To submit transactions to the XL1 sequence (testnet), that wallet needs test tokens.

Copy the address, then use your newly funded XL1 wallet from step #5 to manually send 1-2 testnet XL1 on Sequence to the wallet addresses on the UI. Due to the daily cap on the XL1 Faucet, we don't recommend sending the 100 testnet XL1 to the dApp wallets, just to your separate wallet so you can fund test dApp wallets on the fly.

Once you have sent the tokens using the XL1 Wallet UI, refresh the dApp. You're ready to play!

Part of the fun of creating a dApp with the XYO AI SDK is that you may end up with slightly different versions, designs, and interfaces depending on how your AI makes decisions that lead to a final game! Here's an example of what we've seen when we've run this in the past:

Troubleshooting

The plugin [XYO Skills] doesn't appear after install. Make sure you opened a new session — Claude Code only scans for skills at session start, not mid-session.

Claude completed the prompt, but the preview of the dApp isn't appearing. If you see the image below, you may have to close and reopen the preview. You can reopen the preview using the top right button for "Views" and selecting "Preview". If you'd like to use the dApp, we recommend opening the localhost website on Google Chrome to check out the new dApp you have created! Normally it goes to http://localhost:3000/.

Last updated