Use STRIDE GPT with a private API
Connect STRIDE GPT to the private Morse API: set it up, pick a model, and check it works.
Give 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. Then one tool can't spend all your credits. See Limit a key. Keep the key in your environment, where STRIDE GPT reads it.
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.
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
Use its OpenAI-compatible provider
STRIDE 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 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
/v1to the endpoint itself, so give it the address without it:https://inference.trymorse.ai.In the web app
In 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
.envfile, so the form starts with it:.env LM_STUDIO_ENDPOINT=https://inference.trymorse.aiIn the command line
Run
stride-gpt. The first run opens its setup, and later runs open it with/config. Choose LM Studio as the provider, and enterhttps://inference.trymorse.aias the API base URL.At the Model prompt, type
qwen/qwen3.8-27b-uncensored. Keep the suggested output limit. Answernwhen 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 quickandstride-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.
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 quickA 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 and 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.
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. |
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. For other tools, see Tools and coding agents.