> ## Documentation Index
> Fetch the complete documentation index at: https://docs.deepvista.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Setting Up the Rebrandly CLI for DeepVista Task Delegation

> Generate custom short links through DeepVista workflows using the Rebrandly CLI on a connected machine, while keeping your API key out of regular chat history.

## Overview

Integrating the **Rebrandly CLI** with DeepVista lets your workflows create, customize, and manage branded short URLs (e.g. `link.yourdomain.com/xyz`) directly from prompts.

Your Rebrandly API key is given to DeepVista once, through a **sensitive message** in chat, a message DeepVista doesn't save to chat history. From there, the key is only ever used by your connected machine to run Rebrandly CLI commands; it's never handled as regular chat text or stored in a normal message.

## Prerequisites

<Note>
  Deep Workflows need a connected machine before you can run them. Complete these three setup steps first, in order:
</Note>

<CardGroup cols={2}>
  <Card title="Mac Setup" icon="terminal" href="/tutorials/mac-setup">
    Install the developer tools and Claude Code CLI this setup depends on.
  </Card>

  <Card title="Set Up Your Claude Code Connector" icon="link" href="/tutorials/server/claude-connector-delegation">
    Authenticate Claude Code with your Claude account.
  </Card>

  <Card title="Connect Your Own Machine" icon="server" href="/tutorials/server/local">
    Install the DeepVista CLI and connect your machine as a local runner.
  </Card>
</CardGroup>

With your machine connected and `deepvista tasks run` polling, you'll also need a [Rebrandly](https://www.rebrandly.com) account with an active workspace API key.

## Step-by-step guide

<Steps>
  <Step title="Open your Rebrandly settings">
    In Rebrandly, click your account menu and select **Settings**.

    <Frame>
      <img src="https://mintcdn.com/deepvistainc/fI7B-JE9ZbP3dilT/images/image-9.png?fit=max&auto=format&n=fI7B-JE9ZbP3dilT&q=85&s=a022cba9504638485a4a986f2d7e2502" alt="Rebrandly account menu open, with Settings highlighted" width="1736" height="1256" data-path="images/image-9.png" />
    </Frame>
  </Step>

  <Step title="Go to API Keys">
    Under **Connections & Data**, select **API Keys**.

    <Frame>
      <img src="https://mintcdn.com/deepvistainc/ieAv7cN_lSh57oIU/images/image-10.png?fit=max&auto=format&n=ieAv7cN_lSh57oIU&q=85&s=98b69da1c62b38aead909b6c641fd9ed" alt="Rebrandly Settings page with the API Keys section selected, showing a masked API key" width="2838" height="1366" data-path="images/image-10.png" />
    </Frame>
  </Step>

  <Step title="Copy your API key">
    Click the **Copy** button next to your key.

    <Frame>
      <img src="https://mintcdn.com/deepvistainc/ieAv7cN_lSh57oIU/images/image-11.png?fit=max&auto=format&n=ieAv7cN_lSh57oIU&q=85&s=a3e42a3681dee4ad6f9f99c0dc31fceb" alt="Copy button highlighted next to a masked Rebrandly API key" width="1984" height="978" data-path="images/image-11.png" />
    </Frame>
  </Step>

  <Step title="Give the key to DeepVista as a sensitive message">
    Back in DeepVista chat, paste the key using the **sensitive message** toggle (the crossed-out eye icon next to send). Messages sent this way are delivered to your connected machine but are not saved to chat history.

    <Frame>
      <img src="https://mintcdn.com/deepvistainc/fI7B-JE9ZbP3dilT/images/image-12.png?fit=max&auto=format&n=fI7B-JE9ZbP3dilT&q=85&s=547cea42906ae2d6a30452b20e0f2364" alt="DeepVista chat with the sensitive-message toggle enabled, showing a redacted API key that won't be saved" width="1332" height="366" data-path="images/image-12.png" />
    </Frame>

    <Tip>
      This is the recommended way to hand off any credential to DeepVista. It's simpler than manually creating a local config file, and the key still never appears in your regular chat history.
    </Tip>

    Done, you can now rebrand any link in a DeepVista workflow just by chatting.
  </Step>
</Steps>

## Next steps

<CardGroup cols={2}>
  <Card title="Automating Linear Tickets via DeepVista Task Delegation" icon="ticket" href="/tutorials/task-delegation-linear">
    See the same local-credential pattern used to file Linear tickets headlessly.
  </Card>

  <Card title="Set Up an X Posting Workflow" icon="hashtag" href="/tutorials/x-post-workflow">
    Research, draft, and publish X posts with the Buffer CLI.
  </Card>
</CardGroup>
