Cursor and Codex alternatives that don't refuse security work
What "doesn't refuse" honestly means, how Cursor and Codex handle hacking and reversing tasks as of 2026-11, and how to point an editor agent — Codex, Continue or Cline in VS Code — at a local or uncensored model over an OpenAI-compatible endpoint.
· 8 min read
If you live in an editor, the refusal problem looks like this: you ask the agent in your sidebar to write a Frida hook, an exploit for a lab binary, or a parser for a malware config, and it declines — or quietly writes something that doesn't do the job. The editor isn't the issue. The model behind it is, and the policy of the company serving it. The good news for editor users is that the agent and the model are separable: several editor agents let you choose the model, including one running on your own machine.
This guide covers what Cursor and Codex do and don't allow (as of 2026-11, checked 2026-11-22), what "doesn't refuse" can honestly mean, and how to wire an editor agent to a local or uncensored model. If you're after a terminal agent to replace Claude Code on engagements, that's a different guide; this one is about the editor.
What "doesn't refuse" honestly means
Three things are true at once, and it's worth being clear about them before choosing a tool.
- A model can be made not to refuse. Open-weight models can have their refusal behaviour removed — "abliteration," after Arditi et al. showed refusal is mediated by a single direction in the model's activations. An abliterated model will attempt the hook, the exploit or the unpacker.
- Not refusing isn't the same as being good at it. Abliteration can cost some quality (Labonne), and an open-weight model you can run on a laptop is weaker than a frontier hosted model. A model that attempts everything and gets half of it wrong isn't an upgrade for every task.
- Authorization still matters. A model that doesn't refuse moves the judgment to you. Testing systems you don't own or aren't authorized to test is illegal whichever model wrote the code, and the hosted services that don't refuse still have terms that forbid it.
So the honest goal is narrower than "an AI that helps with everything": an editor agent that does legitimate offensive and reversing work — on your own code, your lab, your authorized targets — without stopping to lecture you.
Cursor and Codex, as of 2026-11
Cursor. A polished VS Code fork with a broad model menu — its own Composer and Grok models, plus OpenAI, Anthropic, Google and others on Premium and above (models). Plans run from Free and Plus at $8/mo up to Ultra at $200/mo (pricing, as of 2026-11). Its acceptable use policy (last updated Aug 11, 2026) prohibits "Engaging in espionage, hacking..." and jailbreaking, and doesn't mention penetration testing or a security-research exception; when you use a third-party model, that provider's policy applies too. Whether Cursor can use a local model or a custom OpenAI-compatible base URL isn't documented on its models page, so don't plan on it. Cursor is excellent for ordinary coding; it isn't built for offensive work.
Codex. OpenAI's agent comes as an open-source CLI (Apache-2.0), an IDE extension for VS Code, Cursor and Windsurf, cloud agents and a desktop app (repo). On OpenAI's hosted models, the usage policy (as of 2026-11) has no explicit authorized-research exception, and Trusted Access for Cyber is the formal path: GPT-Daybreak-Blue for defensive work, Daybreak-Red for pentest and red-team workflows, approved separately. What makes Codex different is that it runs against local models: --oss uses Ollama or LM Studio, and custom providers with a base_url work too (advanced config). Codex and Cursor compared with caveira goes into more detail.
The editor agents that let you choose the model
In VS Code (and its forks), the main open-source agents that bring their own model are:
- Continue — chat, edit and agent modes, configured with a
config.yamlthat lists models and providers, including Ollama, LM Studio and any OpenAI-compatible server. - Cline — an autonomous agent in the sidebar that reads files, edits, and runs terminal commands with your approval for each step. Its provider list includes Ollama, LM Studio and "OpenAI Compatible" with a custom base URL.
- The Codex extension, backed by the same configuration as the Codex CLI.
All three can talk to a model on localhost. That's the core of the setup: serve a model locally behind an OpenAI-compatible API, and point the editor agent at it.
Step 1: serve a model on an OpenAI-compatible endpoint
The three common local servers, each exposing an OpenAI-style /v1 API:
# Ollama: listens on 127.0.0.1:11434, OpenAI-compatible API under /v1
ollama pull <model>
ollama serve
# llama.cpp: --jinja applies the model's chat template, which tool calling needs
llama-server -m ./model.gguf --port 8080 --jinja -c 32768
# LM Studio: start its local server from the Developer tab (default port 1234)
Two things trip people up with agents specifically:
- Context length. Agents send long prompts: system instructions, tool definitions, file contents. Ollama's default context window is small for this; raise it with the
OLLAMA_CONTEXT_LENGTHenvironment variable or anum_ctxparameter in a Modelfile. With llama.cpp,-csets it. - Tool calling. Agent modes need a model and a server that support tool calls. Pick a model whose card says it supports them, and with llama.cpp run with
--jinja. A model without working tool calls will chat fine and fail the moment the agent tries to edit a file.
Which model to run depends on your hardware. As a reference, a ~30B coding model is about 18.6 GB of weights at Q4 (unsloth GGUF); fitting it on a 24 GB GPU or a 32 GB+ Mac is our estimate, with headroom needed for the context. Abliterated variants of popular open models are published on Hugging Face; read the card for the base model, the method, and the licence. Local vs hosted uncensored models covers choosing one.
Step 2: point the editor agent at it
Continue — in ~/.continue/config.yaml:
name: local
version: 0.0.1
schema: v1
models:
- name: Local abliterated
provider: ollama
model: <model>
roles: [chat, edit, apply]
- name: llama.cpp server
provider: openai
model: <model>
apiBase: http://127.0.0.1:8080/v1
roles: [chat, edit, apply]
The openai provider with an apiBase is how Continue talks to any OpenAI-compatible server, local or not.
Cline — in its settings, choose the API provider (Ollama, LM Studio, or OpenAI Compatible), then set the base URL (http://127.0.0.1:8080/v1 for llama.cpp, http://127.0.0.1:1234/v1 for LM Studio), any placeholder key the server expects, and the model ID. Keep Cline's per-action approvals on: it runs terminal commands.
Codex — the quickest route is codex --oss, which uses a local Ollama or LM Studio. For llama.cpp or another server, add a provider to ~/.codex/config.toml:
model = "<model>"
model_provider = "local"
[model_providers.local]
name = "llama.cpp"
base_url = "http://127.0.0.1:8080/v1"
The advanced config docs list the other provider fields, including which wire API to use; check them against your server. The IDE extension reads the same configuration.
Step 3: tell it what it's working on
An abliterated model won't refuse, but every model does better with context — and the context is also where your authorization lives. Put a short file at the root of the project that the agent reads (AGENTS.md is picked up by Codex; Continue and Cline have their own rules files):
- What the project is: your own app, a CTF binary, a lab, an authorized engagement.
- The scope, if there's a target: hosts and ranges in scope, and what's out.
- Rules: no traffic to anything outside scope, approvals on for commands, no credentials in prompts.
The same note helps hosted models too. Many refusals on mainstream assistants come from missing context rather than policy (what to do about refusals).
Where caveira fits, and where an IDE is better
caveira isn't an editor plugin. It's a terminal agent and desktop app whose backend serves uncensored, abliterated open-weight models, so there's nothing to host and no application to wait on. It fits a different part of the work than an editor agent does:
- It runs the tools, not just the code. Security work is mostly running things: a decompiler,
frida,nmap,sqlmap, a debugger. caveira has a bash sandbox and an optional Docker box with pwntools, gdb, radare2, nmap, sqlmap, ffuf and a headless Chromium behind mitmproxy, plus/labpractice targets. - It ships the security skills. Reverse engineering, binary exploitation and web-app testing workflows, and MCP for GhidraMCP or an IDA server.
- It works on your editor's files. Run it in the project folder in a terminal pane beside VS Code or Cursor; edits land in the same files, and the editor's diff view shows them.
Where an IDE agent is better: inline completions, editing in place as you type, and a long ordinary-coding session where you want the agent inside the editor. Where a local setup is better: when nothing may leave the machine, or you want to pay nothing. caveira can also send its requests to a model server on your own machine (--base-url, localhost only) instead of its hosted backend. The local uncensored models comparison lays out that trade-off.
Which to choose
- Your editor work passes policy and you want the strongest models: stay on Cursor or Codex, and apply to Trusted Access for Cyber if you qualify.
- You want an editor agent that doesn't refuse, and you have the hardware: Continue, Cline or the Codex extension pointed at a local abliterated model. Free and private; quality depends on what you can run.
- You want no refusals without hosting a model, and your work is about running security tools: a hosted uncensored agent like caveira in a terminal next to your editor.
Whichever you pick, it's still your authorization that makes the work legitimate, and still your review that makes it correct.