Set up Dexby with your coding agent

Give Claude Code, Cursor or Codex a prompt to read our docs and connect the SDK to your agent. Review its changes and test the first tool call before shipping.

  • Use the methods documented in llms.txt
  • Keep your API key on the server
  • Match the provider to your framework
  • Show a connect link when an account is missing
  • Test one read-only action
Setup prompt for Claude Code, Cursor or Codex
Add Dexby to this project so our AI agent can act in our customers' apps. Read https://dexby.ai/llms.txt first and use only the methods it documents.

1. Install @dexby.ai/sdk with this repo's package manager. Read the API key from DEXBY_API_KEY on the server, and never send it to the browser.
2. Find where our agent gets its tools, and import the Dexby provider for our framework or model API from @dexby.ai/sdk/providers/<name>.
3. On each agent request, create a session for the signed-in customer with dexby.createSession({ userId, connectors }). Check the session result, then load session.tools() and check its result before passing the tools to the agent.
4. When a tool result says an app is not connected, show the customer the connect link it returns.
5. Add one test that runs a read-only action for a test user.

Then tell me which apps you enabled and what I still need to configure.

Give a running agent its tools over MCP

Every session has an MCP URL. Point Claude Code, Cursor or any Streamable HTTP client at it with your project key, and the agent gets the same tool search, policy and audit as the SDK.

{
  "mcpServers": {
    "dexby": {
      "url": "<session.mcpUrl>",
      "headers": {
        "Authorization": "Bearer $DEXBY_API_KEY"
      }
    }
  }
}

What the agent sees

A handful of meta tools that cover the whole catalog, plus any actions you pin.

  • dexby_search_actions

    Finds actions by what the request needs

  • dexby_get_action_schemas

    Loads the inputs for the actions it picked

  • dexby_execute

    Runs one action with the customer’s connected account

  • dexby_read_result

    Pages through a large result