← Codex setup guide

Codex · Icons & illustrations

How to Make Icons and Illustrations in Codex

Connect PixelMCP to Codex and your agent can make icons and illustrations while it works, then save the files straight into your project. Create consistent spot illustrations, empty states, onboarding art and app icons in your brand palette, from your chat or directly inside your codebase.

AI-generated icon set example

1. Connect PixelMCP to Codex

This takes about a minute and you only do it once.

  1. 1. Add the server

    Run:

    codex mcp add pixelmcp --url https://pixelmcp.com/mcp
  2. 2. Or edit config directly

    Equivalent entry in ~/.codex/config.toml:

    [mcp_servers.pixelmcp]
    url = "https://pixelmcp.com/mcp"
  3. 3. Sign in

    Run the login command and approve access in your browser:

    codex mcp login pixelmcp
  4. 4. Start Codex

    Launch codex and run /mcp to confirm PixelMCP's tools are listed.

Menus change often. If something doesn't match, see the full Codex guide.

2. Ask your agent for icons and illustrations

  • “Set of 6 spot illustrations for our onboarding screens, same style and colors.”

  • “App icon for a meditation app: a simple lotus, soft gradient, rounded square.”

  • “Make icons and illustrations for this project and save them to /public/images with descriptive file names.”

3. Pick the right model

See every model ranked in best AI model for icons and illustrations.

Tips

  • Recraft V4.1 keeps a consistent style across a set.
  • Describe the style precisely and reuse it for each item.
  • Ask for a transparent or plain background for easy placement.
  • Ask Codex to reference the saved files in your code, for example as an <img> tag or in frontmatter.

FAQ

Can Codex make icons and illustrations?+

Yes, once PixelMCP is connected. Codex writes the prompt and PixelMCP generates the images with models like Recraft V4.1, then the agent can save the files into your project.

Which model should I use for icons and illustrations in Codex?+

Start with Recraft V4.1: illustration, icons, posters and brand design work. Name the model in your message, or let Codex choose.

How much does it cost?+

From $0.13 per image with the recommended models. Pay as you go with credits that never expire. New accounts get 100 free credits.

What do I need to use PixelMCP in Codex?+

Codex CLI installed (npm install -g @openai/codex). The IDE extension shares the same config.