UniHooks

How to build a custom Uniswap hook with AI

7 November 2026

The 15 ready-made rules cover most launches. When you need something different, such as a fee that changes with the time of day, rewards for long-term holders, or a rule only your community uses, you can describe it and let AI write the code into your own hook.

How it works

  1. Open Advanced and choose Public or Private.
  2. Tick any of the tested rules you want as a base.
  3. Describe the extra behaviour in plain words, for example "double the sell tax on Fridays" or "send 1% of every buy to holders who have held for 30 days".
  4. AI writes the custom code on top of the tested rules. You see the full contract before anything happens.
  5. Deploy it from your own wallet. Your hook gets its own address and its own page on UniHooks, and its source code is published on the block explorer automatically.
  6. Launch pools with it from its page, and submit it to Uniswap from there so it can be traded in Uniswap's app.

Why build on tested rules

The base rules are tested against a real copy of Uniswap. Starting from them means the AI only writes the part that's new to you, which keeps the custom part small and easy to read.

Before you deploy

Not sure you need custom code? Compare Create and Advanced.

Try it on your own token. Pick the rules, sign one transaction, no code.Create a hook

More guides