Use Shannon with a private, uncensored API

Connect Shannon to the private Morse API, uncensored models included: set it up, pick a model, and check it works.

Give Shannon the base URL https://inference.trymorse.ai/v1 and a Morse API key. It calls the OpenAI API.

The same key also calls 17 uncensored models. See them.

Cybersecurity: Test, monitor, and defend your systems without safety filters blocking real security work.

Before you start

Make a key for Shannon 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 Shannon 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 Shannon for you. Or set it up by hand, below.

Setup prompt
Set up Shannon 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 deepseek/deepseek-v4.1-flash-1017-abliterated.
4. Follow https://trymorse.ai/inference/docs/tools/shannon, then run its check.

Change only Shannon's settings. Leave everything else as it is.

Set up Shannon

  1. Describe Morse in models.json

    Shannon reaches a model outside its catalog through a models file. Save this as models.json in the folder you run Shannon from:

    models.json
    {
      "providers": {
        "morse": {
          "name": "Morse",
          "baseUrl": "https://inference.trymorse.ai/v1",
          "api": "openai-completions",
          "apiKey": "MORSE_API_KEY",
          "models": [
            {
              "id": "deepseek/deepseek-v4.1-flash-1017-abliterated",
              "name": "DeepSeek V4.1 Flash 1017 Uncensored",
              "reasoning": true,
              "input": [
                "text",
                "image"
              ],
              "contextWindow": 1048576,
              "maxTokens": 32768,
              "cost": {
                "input": 0.5,
                "output": 1.5,
                "cacheRead": 0.05,
                "cacheWrite": 0
              },
              "thinkingLevelMap": {
                "off": "none",
                "minimal": null,
                "low": "low",
                "medium": null,
                "high": "high",
                "xhigh": null,
                "max": "max"
              }
            },
            {
              "id": "moonshotai/kimi-k3.1-pro-uncensored",
              "name": "Kimi K3.1 Pro Uncensored",
              "reasoning": true,
              "input": [
                "text",
                "image"
              ],
              "contextWindow": 1048576,
              "maxTokens": 32768,
              "cost": {
                "input": 5,
                "output": 18.75,
                "cacheRead": 0.5,
                "cacheWrite": 0
              },
              "thinkingLevelMap": {
                "off": "none",
                "minimal": null,
                "low": "low",
                "medium": null,
                "high": "high",
                "xhigh": null,
                "max": "max"
              }
            },
            {
              "id": "z-ai/glm-5.3-uncensored",
              "name": "GLM 5.3 Uncensored",
              "reasoning": true,
              "input": [
                "text"
              ],
              "contextWindow": 1048576,
              "maxTokens": 32768,
              "cost": {
                "input": 1.75,
                "output": 5,
                "cacheRead": 0.3,
                "cacheWrite": 0
              },
              "thinkingLevelMap": {
                "off": null,
                "minimal": null,
                "low": "low",
                "medium": null,
                "high": "high",
                "xhigh": null,
                "max": "max"
              }
            }
          ]
        }
      }
    }
    • openai-completions says Morse speaks the OpenAI chat completions API.
    • Shannon sends the key from your environment in place of apiKey, so the file holds no key.
    • Each thinkingLevelMap names the reasoning effort Morse takes for each of Shannon's levels. Shannon runs at high.
  2. Name the model and the key

    Set these in the shell you start Shannon from:

    Terminal
    export SHANNON_AI_MODEL="morse:deepseek/deepseek-v4.1-flash-1017-abliterated"
    export SHANNON_AI_API_KEY="$MORSE_API_KEY"

    The part before the first colon is the provider in models.json. The rest is the model id, exactly as the table below writes it.

  3. Run a scan

    Shannon runs in Docker, so start Docker, with Compose v2, first. Then point it at your app's address and its source code:

    Terminal
    npx @keygraph/shannon start -u https://your-app.example -r ./your-repo --models-config ./models.json

Which model to pick

ModelContextInput / outputWhy
deepseek/deepseek-v4.1-flash-1017-abliterated1M$0.50 / $1.50Uncensored, takes tools on its TEE endpoint too, and has a long context for big codebases.
moonshotai/kimi-k3.1-pro-uncensored1M$5 / $18.75Uncensored, and the strongest reasoner here for long scans.
z-ai/glm-5.3-uncensored1M$1.75 / $5Uncensored, runs only in attested enclaves, and takes tools there.

Prices are in dollars per million tokens, on each model's default endpoint. Every model is on the models page.

Check it works

Add --validate-model to check the model without a scan. Use your app's real address and folder: Shannon checks that both are there. It sends the model one request, then stops.

Terminal
npx @keygraph/shannon start -u https://your-app.example -r ./your-repo --models-config ./models.json --validate-model

Validation COMPLETED, with Preflight (LLM credentials, target URL) — OK, shows that Morse took the request.

Keep it private

Set a privacy floor on Shannon'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 seeWhat to do
Model validation failedShannon doesn't show Morse's error. Check that SHANNON_AI_API_KEY holds your Morse key, and that the app's address answers. The run's log is ~/.shannon/workspaces/<workspace>/.shannon/workflow.log.
not found in pi registryPass --models-config ./models.json. Check that SHANNON_AI_MODEL starts with morse:, then the model id from the file.
401 invalid_api_keyCheck that MORSE_API_KEY is set where Shannon starts, and that the key isn't revoked.
402 insufficient_balance or key_spend_limit_reachedAdd credits, or raise the key's spend limit. A request holds credit for its output limit before it starts: see Holds.
404 model_not_foundUse 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.