Settings and API keys
Store your Anthropic API key securely, choose a provider and model for Morph, and find every CodeMorph setting.
Morph's AI features use your own model provider. CodeMorph doesn't resell tokens or route your code through its own servers.
What needs a key
Scan & Plan and Run & Verify are fully local and need no key. Conversion and Ask call your model provider with your key.
Set your Anthropic API key
- Open the Command Palette with Ctrl Shift P.
- Run CodeMorph: Set API Key.
- Paste your key (it starts with
sk-ant-) and press Enter.
You'll see CodeMorph: API key saved. The input is masked, and pressing Esc or submitting an empty value leaves any existing key unchanged.
How the key is stored
The key goes into the editor's secret storage, which is encrypted with your operating system's credential protection and scoped to the CodeMorph extension. It is never written to settings.json, never synced with your settings and never logged.
To replace the key, run CodeMorph: Set API Key again. The new key overwrites the old one.
Choose a provider and model
Open Settings (Ctrl ,) and search for CodeMorph, or edit settings.json directly:
{
// "anthropic" (default) or "ollama"
"codemorph.ai.provider": "anthropic",
// Model identifier for that provider. Empty means CodeMorph's default.
"codemorph.ai.model": ""
}| Setting | Values | Default |
|---|---|---|
codemorph.ai.provider | anthropic, ollama | anthropic |
codemorph.ai.model | Any model identifier for the provider | empty |
Anthropic
Uses your key from secret storage. Pick the Claude model from the model picker at the bottom of the Morph panel, or set codemorph.ai.model. Usage is billed to your Anthropic account under its terms.
Ollama Coming soon
Runs open models locally through Ollama. Nothing leaves your machine. Set the provider to ollama and the model to an installed tag.
CodeMorph commands
| Command | Shortcut | What it does |
|---|---|---|
| CodeMorph: Start Migration | Ctrl Shift M | Opens Morph and runs Scan & Plan |
| CodeMorph: Run Verify | Ctrl Shift V | Runs typecheck, tests and build |
| CodeMorph: New Chat | Starts a fresh conversation with Morph | |
| CodeMorph: Set API Key | Stores your Anthropic key | |
| CodeMorph: Open Folder | Opens a project folder |
Privacy defaults
These are set in the product itself, not as user settings you have to find:
- Telemetry is disabled.
- Crash reports have no destination configured, so they're never sent.
- The Extensions view uses Open VSX, not Microsoft's marketplace.
Something unclear or out of date? Tell us.