Skip to content

Creator codes for your game

Let your players support their favorite creators with a code, and pay those creators a share of every purchase.

Start with your coding agent

Copy this into Claude Code, Cursor, Codex, or any coding agent.

Your coding agent
Add Nexus creator codes to this game.Read https://docs.nexus.gg/llms.txt, then the pages it lists under "Get started" and "Build your integration".Then plan the whole integration for this codebase: where players enter a code, how it's validated, how confirmed purchases are reported from the server, and what's left before go-live.Use Sandbox, keep the private key on the server, and show me the plan before changing anything.

You add two calls: one from your game, one from your server. Nexus handles the attribution, reporting, and creator payouts.

  1. Your player enters a creator code

    Your game or store asks for it, and you check it belongs to a creator in your program with your public key.

  2. Your player buys something

    Once your payment provider confirms the purchase, your server reports it to Nexus with your private key.

  3. The creator earns their share

    Nexus attributes the revenue and pays the creator. You manage your program, creators, and campaigns in the Publisher Dashboard.

Each prompt points your agent at the page it needs, so it works from the docs instead of guessing.

Report confirmed purchases from your server, with a stable player ID so repeat buyers count.

Paste into your agent
Read https://docs.nexus.gg/start-integrating/track-a-purchase.md.Find where this project confirms a purchase on the server, and send that transaction to Nexus as the page describes, including a stable, pseudonymous playerId.Show me the plan first.
  • /llms.txt tells your agent which file to load, and lists every page as Markdown.
  • /llms-developers.txt is everything you need to integrate the API, in one file.
  • /llms-publishers.txt is the publisher guides for the Publisher Dashboard, in one file.
  • /llms-full.txt is both, in one file.
  • Replace the last / in a guide or endpoint page’s URL with .md, or use its Copy page button, to get that page as Markdown.