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.
What agents do in Dub.
Create a branded short link
Create a short link for a campaign URL so it can be shared and tracked.
Check a link's click count
Get a link's click count and recent activity to report on campaign performance.
Confirm before bulk-deleting links
Require approval before bulk deleting links, since it removes tracking history along with the redirects.
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
7Look things up. Allowed by default.
- dub.get_tagsRetrieve List of Tags
- dub.get_linksGet Links
- dub.list_domainsList Domains
- dub.get_link_infoGet Link Info
- dub.get_workspaceGet Workspace
- dub.get_links_countGet Links Count
- dub.track_openTrack Deep Link Open Event
write
7Create and change things. Allow, or ask the user first.
- dub.create_tagCreate Tag
- dub.update_tagUpdate Tag
- dub.create_domainCreate Domain
- dub.update_domainUpdate Domain
- dub.update_workspaceUpdate Workspace
- dub.upsert_linkUpsert a Link
- dub.bulk_update_linksBulk Update Links
destructive
3Delete, cancel or archive. Ask first, or deny outright.
- dub.delete_tagDelete Tag
- dub.delete_domainDelete Domain
- dub.bulk_delete_linksBulk Delete Links
Dub in three steps.
- 01Your users connect DubThey sign in to Dub on Arc0 Connect, under your brand, and approve the access you ask for.
- 02You set the rulesReads run, writes like “create Tag” can wait for the user, and “delete Tag” can be denied outright.
- 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.
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
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
Use Dub from any agent.
Dub and Arc0, answered.
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.
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.
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.
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.
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.
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