Dub for AI agents

Dub is a short link platform that creates and tracks branded short links, with analytics on clicks and referral sources. Connect it once through Arc0, and your agent, or Claude, ChatGPT and Cursor, can use it through one MCP endpoint, limited to what each user approved.

MarketingOAuth 2.0MCP + RESTdub.co
AUDIT LOG · DUBPOLICY: acme-support
09:41:07 · claude · u_8f2read
dub.list_domains
List Domains✓ allowed · 212ms
09:41:08 · claude · u_8f2read
dub.get_tags
Retrieve List of Tags✓ allowed · 164ms
09:41:09 · claude · u_8f2write
dub.create_tag
Create Tag✓ approved · approved by user
09:41:12 · claude · u_8f2destructive
dub.delete_tag
Delete Tag✕ blocked · policy: deny
EVERY DUB CALL, ON THE RECORD
01 · USE CASES

What agents do in Dub.

01

Create a branded short link

Create a short link for a campaign URL so it can be shared and tracked.

02

Check a link's click count

Get a link's click count and recent activity to report on campaign performance.

03

Confirm before bulk-deleting links

Require approval before bulk deleting links, since it removes tracking history along with the redirects.

02 · ACTIONS

17 Dub actions, graded by risk.

Every Dub action is tagged read, write or destructive, so one policy covers the whole app and new actions inherit the right default.

read

7

Look things up. Allowed by default.

  • dub.get_tags
    Retrieve List of Tags
  • dub.get_links
    Get Links
  • dub.list_domains
    List Domains
  • dub.get_link_info
    Get Link Info
  • dub.get_workspace
    Get Workspace
  • dub.get_links_count
    Get Links Count
  • dub.track_open
    Track Deep Link Open Event

write

7

Create and change things. Allow, or ask the user first.

  • dub.create_tag
    Create Tag
  • dub.update_tag
    Update Tag
  • dub.create_domain
    Create Domain
  • dub.update_domain
    Update Domain
  • dub.update_workspace
    Update Workspace
  • dub.upsert_link
    Upsert a Link
  • dub.bulk_update_links
    Bulk Update Links

destructive

3

Delete, cancel or archive. Ask first, or deny outright.

  • dub.delete_tag
    Delete Tag
  • dub.delete_domain
    Delete Domain
  • dub.bulk_delete_links
    Bulk Delete Links
03 · HOW IT WORKS

Dub in three steps.

  1. 01Your users connect DubThey sign in to Dub on Arc0 Connect, under your brand, and approve the access you ask for.
  2. 02You set the rulesReads run, writes like “create Tag” can wait for the user, and “delete Tag” can be denied outright.
  3. 03Any agent can actYour agent calls Dub through the Arc0 SDK or MCP, and so can Claude, ChatGPT and Cursor. Every call lands on the audit log.
POLICY.TS
await arc0.policies.set('dub', {
  read: 'allow',
  write: 'ask',        // create_tag
  destructive: 'deny',  // delete_tag
})

# Claude Code: the same connection, one URL
$ claude mcp add --transport http arc0 \
    https://mcp.arc0.ai/u/u_8f2
04 · AUTH AND DATA

How Dub connects.

Users sign in to Dub on Arc0 Connect and approve the scopes you request. Build with Arc0’s Dub OAuth app, or bring your own so the Dub consent screen names you. Tokens refresh automatically, and you can export them whenever you want.

The same Dub connection serves your agent over MCP and your own backend over REST and the proxy, so a user connects once. How Arc0 handles credentials →

AUTH
API key · OAuth 2.0
CREDENTIALS
Per-tenant encrypted vault
MODEL SEES
Results only, never credentials
AUDIT LOG
Every call, on every plan
05 · WORKS WITH

Use Dub from any agent.

Claude
ChatGPT
Cursor
Codex
VS Code
OpenAI Agents SDK
Claude Agent SDK
Vercel AI SDK
Mastra
LangGraph
07 · FAQ

Dub and Arc0, answered.

Q01

Can I use Dub with Claude, ChatGPT or Cursor?

Yes. Connect Dub to Arc0 once, then add your Arc0 MCP URL to Claude, ChatGPT, Cursor, Claude Code or any other remote-MCP client. Each assistant only gets the Dub actions you allow.

Q02

How do users connect Dub?

Users sign in to Dub on Arc0 Connect and approve the scopes you request. Build with Arc0’s Dub OAuth app, or bring your own so the Dub consent screen names you. Tokens refresh automatically, and you can export them whenever you want.

Q03

Which Dub actions can my agent take?

17 in total: 7 read, 7 write and 3 destructive, such as “create Tag”. Your policies decide which of them each agent may call.

Q04

Can I stop my agent from deleting things in Dub?

Yes. Actions like “delete Tag” are graded destructive. Set destructive actions to deny, or to ask so the user approves each one, and blocked calls still show up on the audit log.

Q05

Can my own backend call Dub too?

Yes. The same Dub connection is available over REST and through the Arc0 proxy, so your product and your agent share one connection per user.

Get started

Plug Dub into your agent.

Your users connect Dub once, under your brand. Your agent gets 17 actions behind your policies, with every call on the record.

Free to build · MCP + REST · Audit log on every plan