How keys are stored
API keys are stored using a dedicated user secrets mechanism (UN2CUserSecrets) that is separate from the standard Unreal Engine config system. This means keys are not written to NodeToCode.ini or any other .ini file tracked alongside your project.
Keys are serialized to a JSON file in a location outside your project’s Saved/Config directory. The secrets file path is resolved at runtime and is specific to the local machine.
This design prevents API keys from being accidentally included when you:
- Check in your
Saved/Configdirectory - Share your project with teammates
- Package or distribute your project build
The API key fields are editor-only properties. They are not included in packaged game builds.
Entering your API keys
Expand the provider section
Scroll to LLM Services and expand the section for the provider you want to configure — for example, Anthropic or OpenAI.
Supported providers
| Provider | Requires API key | Where to get a key |
|---|---|---|
| Anthropic | Yes | console.anthropic.com |
| OpenAI | Yes | platform.openai.com/api-keys |
| Gemini | Yes | aistudio.google.com |
| DeepSeek | Yes | platform.deepseek.com |
| Ollama | No | Local provider — no key needed |
| LM Studio | No | Local provider — no key needed |
Team environments
When multiple developers share a project, each person must enter their own API key on their own machine. Because keys are stored locally in the secrets file, they are never shared through source control. Recommended practices for teams:- Document which provider and model your team uses in your project’s internal wiki
- Rotate API keys periodically and update each developer’s local settings
- Revoke any key that may have been accidentally exposed
- Use provider-level usage limits or spending caps to guard against unexpected costs
Checking if a key is configured
If a translation request fails with an authentication error, the most likely cause is a missing or invalid API key for the active provider. To verify:- Open Edit → Project Settings → Plugins → Node to Code.
- Confirm the Provider setting matches the provider whose key you entered.
- Re-enter the API key to rule out copy/paste errors (keys are masked after entry).
- Check the Output Log for
LogNodeToCodeentries — authentication errors are logged at theErrorseverity level.