Connect STRIDE GPT to the private Morse API: set it up, pick a model, and check it works. Updated November 30, 2026.

Page: https://trymorse.ai/inference/docs/tools/stride-gpt

# Use STRIDE GPT with a private API

Give [STRIDE GPT](https://github.com/mrwadams/stride-gpt) the base URL `https://inference.trymorse.ai/v1` and a Morse API key. It calls the OpenAI API.

## Before you start

Make a key for STRIDE GPT alone, with a spend limit, under **API keys** in the [console](https://console.trymorse.ai). Then one tool can't spend all your credits. See [Limit a key](https://trymorse.ai/inference/docs/authentication#limits). Keep the key in your environment, where STRIDE GPT reads it.

Terminal

```
export MORSE_API_KEY="sk_morse_..."
```

## Set it up with a prompt

Paste this into a coding agent, such as Claude Code or Codex, and it sets up STRIDE GPT for you. Or set it up by hand, below.

Setup prompt

```
Set up STRIDE GPT to use Morse.

1. Use the OpenAI-compatible endpoint https://inference.trymorse.ai/v1
2. Read the key from the MORSE_API_KEY environment variable.
3. Default to the model qwen/qwen3.8-27b-uncensored.
4. Follow https://trymorse.ai/inference/docs/tools/stride-gpt, then run its check.

Change only STRIDE GPT's settings. Leave everything else as it is.
```

## Set up STRIDE GPT

1. Use its OpenAI-compatible providerSTRIDE GPT drafts threat models, attack trees, and mitigations from a description of your app or from its code.Threat-model only systems you own or are authorized to assess. Morse's [acceptable-use policy](https://trymorse.ai/terms) bans creating malware and attacking systems or people you're not authorized to test.STRIDE GPT's provider for any OpenAI-compatible server is named **LM Studio Server**. Choose it for Morse. STRIDE GPT adds `/v1` to the endpoint itself, so give it the address without it: `https://inference.trymorse.ai`.
2. In the web appIn the sidebar, set **Select your preferred model provider** to **LM Studio Server**. Set **Enter your LM Studio Server endpoint** to `https://inference.trymorse.ai`. Paste your Morse key in **Enter your LM Studio API key (optional)**. Morse needs it: without it, the model list doesn't load.STRIDE GPT then lists Morse's models under **Select the model you would like to use**. Pick `qwen/qwen3.8-27b-uncensored`, or any model from the table below.Running the Docker image? Put the endpoint in your `.env` file, so the form starts with it:.env`LM_STUDIO_ENDPOINT=https://inference.trymorse.ai`
3. In the command lineRun `stride-gpt`. The first run opens its setup, and later runs open it with `/config`. Choose **LM Studio** as the provider, and enter `https://inference.trymorse.ai` as the API base URL.At the **Model** prompt, type `qwen/qwen3.8-27b-uncensored`. Keep the suggested output limit. Answer `n` when it offers a separate architect model. Then give STRIDE GPT your key:Terminal`export STRIDE_GPT_API_KEY="$MORSE_API_KEY"`STRIDE GPT reads this key in the commands you run from your shell, such as `stride-gpt quick` and `stride-gpt analyze`. Its interactive session, and an architect model on LM Studio, send Morse no key.

## Which model to pick

| Model | Context | Input / output | Why |
| --- | --- | --- | --- |
| `qwen/qwen3.8-27b-uncensored` | 262.1K | $0.35 / $1.75 | Uncensored and cheap, takes tools and JSON output, and runs only in attested enclaves. |
| `z-ai/glm-5.3-uncensored` | 1M | $1.75 / $5 | Uncensored and stronger, with tools and JSON output in an attested enclave. |
| `google/gemma-4-26b-a4b-uncensored` | 262.1K | $0.175 / $0.85 | Uncensored, and the cheapest here, for quick threat lists. |

Prices are in dollars per million tokens, on each model's default endpoint. Every model is on the [models page](https://trymorse.ai/inference/models).

## Check it works

Ask for a quick threat model from one line of description:

```
echo "A web API that takes payments and stores card tokens." | stride-gpt quick
```

A list of threats grouped by STRIDE category shows that Morse took the key and the model. In the web app, describe an app on the **Threat Model** tab and choose **Generate Threat Model**.

## Keep it private

Set a privacy floor on STRIDE GPT's key to hold it to a tier, such as TEE. Without a floor, a request runs on its model's default privacy tier. The floor only decides which endpoints serve the requests. See [Privacy tiers](https://trymorse.ai/inference/docs/privacy-tiers) and [Provider routing](https://trymorse.ai/inference/docs/provider-routing).

On a plain API call, TLS ends inside Morse's door, an attested enclave, which seals the request before the relay receives it. A plain client checks the door's certificate, not its attestation. To check the attestation yourself, see [Sealed API keys](https://trymorse.ai/inference/docs/sealed-api-keys).

## If something goes wrong

| What you see | What to do |
| --- | --- |
| No models appear in the web app | Check that the endpoint is `https://inference.trymorse.ai`, with no `/v1`. STRIDE GPT adds it. Then check that the key is pasted whole: Morse's model list refuses a wrong key. |
| `400 unsupported_parameter` naming `response_format` | STRIDE GPT asks for JSON output. Pick a model from the table: each takes it. |
| `401` inside `stride-gpt>`, the interactive session | Run `stride-gpt quick` or `stride-gpt analyze` from your shell instead. Only they read `STRIDE_GPT_API_KEY` for an LM Studio provider. |
| `401` after you set up an architect model | Run `/config` again and answer `n` for the architect model. STRIDE GPT sends no key to an architect on LM Studio. |
| The command line calls another provider | Run `/config` again, and check that the provider is LM Studio. Don't pass a Morse id to `--worker-model`: STRIDE GPT reads `deepseek/` and `google/` as its own providers. |
| `401 invalid_api_key` | Check that `MORSE_API_KEY` is set where STRIDE GPT starts, and that the key isn't revoked. |
| `402 insufficient_balance` or `key_spend_limit_reached` | Add credits, or raise the key's spend limit. A request holds credit for its output limit before it starts: see [Holds](https://trymorse.ai/inference/docs/pricing#holds). |
| `404 model_not_found` | Use a model's id exactly as the table above writes it, with the part before the slash. |

Every code is in [Error codes](https://trymorse.ai/inference/docs/api/errors). For other tools, see [Tools and coding agents](https://trymorse.ai/inference/docs/tools).
