AdCamera

Setup · Codex

Product ads from Codex

Codex is good at long, repetitive jobs. Point it at a catalog and it can run a pack per product and file every image, video and headline into your project.

What you get

Codex gets the four AdCamera tools next to its own shell. It can list a store's products, estimate the total, wait for your go-ahead, then start one pack per product and download the finished files into folders you name.

The key stays in an environment variable. Codex's config only stores the variable's name.

Set it up

  1. Create an API key

    Sign in at the web app and create a key under API keys.

  2. Put the key in your environment

    Add this line to your shell profile, such as ~/.zshrc, so every Codex session sees it. Then open a new terminal.

    Shell profile

    export ADCAMERA_API_KEY=adc_...
  3. Add the server

    Codex sends the variable's value as a bearer token on each request.

    Terminal

    codex mcp add adcamera --url https://adcamera.com/mcp \
      --bearer-token-env-var ADCAMERA_API_KEY
  4. Check the connection

    AdCamera should be listed. Inside a Codex session, /mcp shows its tools.

    Terminal

    codex mcp list

Try it

Ask in plain words. A request like this one runs end to end:

You

yourstore.com is a Shopify store. Make 2 angles in 9:16 with a video for every product. Tell me the total first, then save the files and the copy to ./ads/<handle>/.

  1. shellcurl -s https://yourstore.com/products.json8 products
  2. estimate_ad_pack{ "concepts": 2, "formats": ["9:16"], "video": true, … }{ "credits": 10, "balance": 120 }
  3. create_ad_pack× 8, after your OK80 credits charged
  4. get_ad_pack× 8, every 30 sall "done"
  5. shellcurl -H "Authorization: Bearer $ADCAMERA_API_KEY" -o ads/<handle>.zip …/v1/ads/<id>/download8 zips
  6. shellunzip ads/<handle>.zip -d ads/<handle>/32 files

Codex asked before spending: 8 packs at 10 credits each. You answered "go".

Codex

8 products × 10 credits = 80, which leaves 40. Each product folder now has two 9:16 images, two 5 second videos and a copy.txt with both angles.

Or edit config.toml

codex mcp add writes this block to ~/.codex/config.toml. You can add it by hand instead.

~/.codex/config.toml

[mcp_servers.adcamera]
url = "https://adcamera.com/mcp"
bearer_token_env_var = "ADCAMERA_API_KEY"

Get your API key

Sign in with Google or your email. Keys are free; you pay only for the images and videos you make.