Connect hackingBuddyGPT to the private Morse API, uncensored models included: set it up, pick a model, and check it works. Updated December 5, 2026.

Page: https://trymorse.ai/inference/docs/tools/hackingbuddygpt

# Use hackingBuddyGPT with a private, uncensored API

Give [hackingBuddyGPT](https://github.com/ipa-lab/hackingBuddyGPT) 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](https://trymorse.ai/inference/uncensored).

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

## Before you start

Make a key for hackingBuddyGPT 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).

You'll paste the key into hackingBuddyGPT's `.env` file.

## Set it up with a prompt

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

Setup prompt

```
Set up hackingBuddyGPT 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/hackingbuddygpt, then run its check.

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

## Set up hackingBuddyGPT

1. Install hackingBuddyGPThackingBuddyGPT needs Python 3.13 or later. Install it from its repository:Terminal`git clone https://github.com/ipa-lab/hackingBuddyGPT.git cd hackingBuddyGPT uv sync source .venv/bin/activate`
2. Point it at MorseCopy `.env.example` to `.env`, and set the `llm.` lines:.env`llm.api_key='sk_morse_...' llm.model='openai/deepseek/deepseek-v4.1-flash-1017-abliterated' llm.context_size=1048576``openai/` tells LiteLLM that the endpoint speaks the OpenAI API. The rest is the Morse model id. hackingBuddyGPT doesn't pass `llm.api_base` on to LiteLLM, so set the base URL in your shell instead:Terminal`export OPENAI_BASE_URL=https://inference.trymorse.ai/v1`
3. Run a use caseFill in the `conn.` lines of `.env` with your test machine's address and a low-privilege login. Then run:Terminal`wintermute PrivEscLinux`

## Which model to pick

| Model | Context | Input / output | Why |
| --- | --- | --- | --- |
| `deepseek/deepseek-v4.1-flash-1017-abliterated` | 1M | $0.50 / $1.50 | Uncensored, so it runs privilege-escalation commands instead of refusing, with a long context. |
| `moonshotai/kimi-k3.1-pro-uncensored` | 1M | $5 / $18.75 | Uncensored, and the strongest reasoner here for long runs. |
| `z-ai/glm-5.3-flash-uncensored` | 1M | $0.225 / $1 | Uncensored, fast, and the cheapest here, for many short rounds. |

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

Each round shows the command the model chose and what the machine returned. A first command shows that Morse took the request and its tools. The run's log is in `logs/`.

## Keep it private

Set a privacy floor on hackingBuddyGPT'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 |
| --- | --- |
| `AuthenticationError` with a link to `platform.openai.com` | Set `OPENAI_BASE_URL` in the shell you start `wintermute` from. |
| `401 invalid_api_key` | Check the key you gave hackingBuddyGPT in full, and that it 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).
