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 run on CodeMorph AI (sign in, no key needed), your own model provider key, or a local model through Ollama. With your own key, requests go straight to your provider, you pay them directly, and we never mark it up.
What needs a key
Scan & Plan and Run & Verify are fully local and need no key. Conversion and Ask use CodeMorph AI, your own key or Ollama.
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 Available now
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:
- Anonymous usage statistics are off until you choose. The app asks once on first launch, and closing the dialog means no. Change it with CodeMorph: Share Anonymous Stats.
- There is no separate crash-report service.
- The Extensions view uses Open VSX, the open extension registry.
Something unclear or out of date? Tell us.