Set up Datarails AI Connector (CLI) with Claude (beta)

Datarails AI Connector (CLI) lets Claude work in your Datarails environment for you. You ask in plain language, for example "Mark the bank reconciliation task as done for October", and Claude makes the change. Claude uses your Datarails account, so it can only see and do what you can in the web app. 

You do not need any technical knowledge to set this up. Claude does the installing; you approve a few prompts along the way. Allow about 15 minutes.

The CLI is an add-on to the Datarails AI Connector MCP. The MCP lets Claude read and analyze your data; the CLI lets Claude make changes. 

  AI Connector (MCP) AI Connector (CLI)
What Claude can do Read and analyze Read and make changes
Where it lives In your Claude account On your computer
Where it works Claude chat, on the web or in the desktop app The Code tab of the desktop app, or Claude Code
Setup Add the connector in Claude Ask Claude to install it, then sign in
Limits on access Your Datarails permissions Your Datarails permissions, plus the read or write choice you make at sign-in
Works without an AI assistant No Yes, from a terminal or in scripts
Best for Questions, analysis, reports Changes and repeated tasks

What you need before you start

You need Details
A Datarails account Any Datarails user can do this. Nothing needs to be turned on by your Datarails admin.
A paid Claude plan Pro, Max, Team or Enterprise. The free Claude plan does not work. If your company provides Claude, your Claude admin may need to give you access to the Code tab.
The Claude desktop app A free download for Windows or Mac. The Claude website (claude.ai) on its own is not enough.
The AI Connector (MCP) Added to your Claude account. 
A computer you can install software on Some companies block this. If the install is blocked, ask your IT team.
Your Datarails region See Before you begin.

Cost: Datarails charges for the AI Connector. The Claude plan is paid for separately, to Anthropic.

Before you begin

You need the following:

  • A Datarails account. No admin setup is required in Datarails.
  • A paid Claude plan (Pro, Max, Team or Enterprise). The free plan is not supported.
  • The Claude desktop app, from claude.com/download.
  • The region your Datarails environment is set up with

To find your region:

  1. Open the Datarails web app.
  2. Look at the address in your browser and match it to a region:
Web app address Region
app.datarails.com US
us-2.datarails.com US2
ukapp.datarails.com UK
caapp.datarails.com CA
euapp.datarails.com EU

Ask Claude to install the CLI

Claude runs the installer for you. You do not need to open a terminal. To install:

  1. Open the Claude desktop app and select the Code tab.
     


    Note: If your company provides Claude and the Code tab is unavailable, ask your Claude admin for access.
     

  2. Choose a folder to work in, for example a new empty folder named Datarails.

    Note: Claude requires a folder to start a session. Your Datarails data is not stored in it.

     
  3. Copy the following request, replace US in the first line with your region, and send it:

Install Datarails AI Connector (CLI) for me and sign me in. My region is: US

1. Run the Datarails installer for my computer:

   Windows: powershell -ExecutionPolicy Bypass -Command "irm https://drcli.datarails.com/cli/install.ps1 | iex"

   Mac: curl -fsSL https://drcli.datarails.com/cli/install.sh | bash

   If it says to open a new terminal, reload PATH and run it again.

2. Run "dr login --server" with my region, in the background. It waits up to

   10 minutes for me, so show me the sign-in link and the user code it prints.

3. When I say I've approved it, run "dr whoami --server" with my region and

   tell me who I'm signed in as and what my sign-in allows.

 

Note: The technical lines tell Claude where the installer is. Copy them as they are.

4. Select Allow each time Claude asks to run a command. When Claude finishes, it shows you a sign-in link and a short code.

Note: On Windows, if you are asked whether to allow an app to make changes, select Yes. This installs Node.js, which AI Connector Pro requires.

5. Wait for Claude to show a sign-in link and a user code. 

Sign in and choose access

To sign in:

  1. Open the sign-in link Claude gives you. Datarails opens in your browser.
  2. Sign in with your Datarails account.
  3. Confirm that the page shows your email address and the same user code Claude showed you.
    Note: The page names the Datarails CLI. This is the technical name of AI Connector with write-back capabilities.
  4. Review the requested access and select one option:
Option What it allows
Read only View data. Cannot change anything.
Read and write View and edit data. Cannot delete.
Advanced Choose view or edit for each area.

Tip: Select Read only the first time. You can sign in again later to allow changes.

5. Select Allow.
6. Return to Claude and confirm your approval.

Claude confirms the account you are signed in as. The sign-in is saved in your computer's secure store and renews automatically.

Verify the connection

After completing the setup, confirm that Claude can both reach Datarails and run a request against it.

Confirm the connection

To check that AI Connector Plus is connected:

  1. Start a new session in the Code tab.
    Note: Claude loads AI Connector Plus when a session starts. A session that was open during the install does not have it.
  2. Send: Which Datarails account am I signed in as?

Claude returns your name, your organization and the access you chose.

Test a request

Confirming the connection does not prove that requests work end to end. To validate this, run a low-stakes read request:

List my Datarails dashboards.

Claude shows a permission prompt before it runs the command. Approve it. The dashboard list returns in the chat. Compare it with the Dashboards page in the Datarails web app to confirm that the results match.

Change access, update or remove

Send one of the following requests to Claude:

  • To change access: Sign me in to Datarails again. Open the new link and select a different option.
  • To update: Update the Datarails CLI.
  • To sign out: Sign me out of the Datarails CLI.
  • To remove: Sign me out of the Datarails CLI and uninstall it.

Note: Removing the CLI does not remove the MCP.

Important considerations

  • AI Connector acts as you. It cannot see or change anything that your Datarails account cannot.
  • AI Connector works only in the Code tab of the Claude desktop app. The Chat tab and claude.ai can use the MCP but not the CLI.
  • Claude asks for confirmation before each command by default. Retain this default, and read any command that changes data before you approve it.
  • Deleting is not available during the beta. Delete items in the web app.
  • Treat the sign-in on your computer like a password. Sign out when you finish on a shared computer.
  • Claude reads the Datarails results it works with. Confirm that your company allows you to use Claude with financial data.
  • AI Connector is in beta and is updated often. Update it every few weeks.



© Datarails Ltd. All rights reserved.

Updated

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request