---
title: "Connect Claude Desktop & MCP to Straitly | Straitly Docs"
description: "Connect the Claude desktop app to Straitly with one Terminal command: Cowork and Code both use your Straitly key, and every model shows in Claude's menu."
url: https://straitly.ai/docs/claude-app
updated: 2026-11-25
publisher: Straitly (https://straitly.ai)
---

Docs

Connect your tools

# Connect Claude app

Copy docs

**On this page**

Use your Straitly key in the Claude desktop app, in both **Cowork** and **Code**. One paste connects it, and every Straitly model shows up in Claude’s model menu.

macOS desktop setup

Have ready

The Claude desktop app installed on a Mac. Finish or save your current work before setup restarts the app.

What changes

Claude's third-party gateway configuration for Cowork and Code. The script quits Claude and opens it again.

Keep copied keys and setup commands private.

### Before you start

You need the [Claude app](https://claude.ai/download) on a Mac. The command below creates a key for you, or uses one you already have.

### Setup

#### 1. Open Terminal

Press **⌘ Space**, type **Terminal** and press **Enter**.

![Spotlight search with Terminal selected](https://straitly.ai/shots/claude-code/1-terminal.webp?v=a012c851)

#### 2. Paste the command

Copy it, paste it into Terminal and press **Enter**. It quits Claude, connects it to Straitly and opens it again. You should see `Done - Claude now uses Straitly.`

Copy command Show command

#### 3. Send a message

To choose a model, click the model name next to the send button. Say anything. If Claude answers, you are done.

Code uses the same connection. Switch to **Code** at the top left and it works there too.

### Good to know

- **Small Claude Haiku requests in Activity** are Claude writing chat titles. They cost a fraction of a cent each.

**Prefer clicking? Set it up in Claude’s menus**

#### 1. Turn on Developer Mode

Open **Help → Troubleshooting → Enable Developer Mode…** and click **Enable**. Claude restarts on its own.

![Claude's Help menu with Troubleshooting open and Enable Developer Mode highlighted](https://straitly.ai/shots/claude-app/1-help.webp?v=06cad80e)

#### 2. Open the gateway settings

Open **Developer → Configure Third-Party Inference…**

![Claude's Developer menu with Configure Third-Party Inference highlighted](https://straitly.ai/shots/claude-app/2-developer.webp?v=076bd200)

#### 3. Connect Straitly

Under **Connection**, choose **Gateway**. Set **Credential kind** to **Static API key**, paste the URL below into **Gateway base URL** and your key into **Gateway API key**. Leave everything else as it is.

**Do not add /v1 to the URL** Claude adds `/v1` on its own. With `/v1` at the end, every request goes to `/v1/v1` and fails with a 404. Right `https://api.straitly.ai` Wrong `https://api.straitly.ai/v1`

text

Copy Copied Failed

https://api.straitly.ai

![Configure third-party inference: Gateway, Static API key, base URL https://api.straitly.ai and a hidden API key](https://straitly.ai/shots/claude-app/3-connection.webp?v=ba18718b)

#### 4. Apply and restart

Click **Apply Changes**, then **Save & Restart**. Then send a message as in step 3 above.

![The Save and Restart dialog over the gateway settings](https://straitly.ai/shots/claude-app/4-restart.webp?v=91a35ba7)

### If something is wrong

- **“Couldn’t sign in to Gateway”.** The key is wrong or was just created. Wait 20 seconds and click **Check again**, or paste the command again.
- **Every message fails with a 404.** The base URL ends in `/v1`. Remove it, then apply and restart.
- **No Straitly models in the menu.** Quit Claude with **⌘ Q** and open it again. Closing the window is not enough.

### Verify your connection

Choose a Straitly model in the app and send a short message. Confirm the request in Straitly Activity; Code uses the same connection.

[Open request activity](https://straitly.ai/app/activity) to check the model, status, and charge for your test request.

### Setup checks

**Setup cannot restart Claude**

Quit Claude completely with Command-Q, then run the command again. Closing a window alone does not quit the app.

**Using the manual setup instead**

Follow the expandable menu guide above. Use the gateway root without /v1; Claude adds that part itself.

If the request is rejected, check your balance and key limits in [Errors & limits](https://straitly.ai/docs/errors).

### Undo

This puts Claude back to how it was before Straitly:

bash

Copy Copied Failed

curl -fsSL https://straitly.ai/setup/claude-app | STRAITLY_UNDO=1 bash

[Connect Claude Code](https://straitly.ai/docs/claude-code) [Connect Codex](https://straitly.ai/docs/codex)

---
Markdown version of https://straitly.ai/docs/claude-app.
