# Get a free NVIDIA API key for a coding agent

> Source: https://minniai.com/learn/free-nvidia-api-key-for-a-coding-agent (canonical HTML page)

[Guides](https://minniai.com/learn)


NVIDIA hands out API keys for its hosted open models at no charge: sign in at build.nvidia.com, generate a key, and you get a string that starts with nvapi-. Keep it in a .env file or your agent’s own config, never in a memory file, and a terminal coding agent such as MinniCode runs on it with requests going straight from your computer to NVIDIA.

Updated 2026-11-07

## Get the key

- Open [build.nvidia.com](https://build.nvidia.com) and sign in. A personal account is enough; there is nothing to pay.
- Open [build.nvidia.com/settings/api-keys](https://build.nvidia.com/settings/api-keys) and generate a key. It starts with `nvapi-`. Copy it now: the page does not show it again.
- Pick a model from the catalog. The free inference endpoints host NVIDIA’s own Nemotron family and other open models, such as DeepSeek; the list changes, so read it on the site.

The hosted endpoints speak the same chat API as OpenAI’s, at `https://integrate.api.nvidia.com/v1`, so any client that takes a base URL and a key works. The free tier has a request limit NVIDIA sets per account; for a coding agent used by one person it is the normal way to run.

## Where to keep it

- In a `.env` file in the project, as `NVIDIA_API_KEY=nvapi-...`, with `.env` in `.gitignore`. Most SDKs and agents read it from there or from the environment.
- In the agent’s own config, when it has one. MinniCode asks for the key the first time it runs and keeps it on your computer.
- Never in a memory file. A key in `CLAUDE.md`, `AGENTS.md` or an auto memory note is sent with every turn, to every model you use, and lands in every transcript. MinniMemoryMCP’s `doctor` flags a credential-shaped string in a memory file (`MM008`) and `apply` refuses to compile it.
- Never in a `.env.example` that is committed. Put the variable name there with an empty value.

.env

```
NVIDIA_API_KEY=nvapi-your-key-here
```

If a key does leak, revoke it on the same settings page and generate a new one.

## Run a coding agent on it

[MinniCode](https://minniai.com/minnicode) is a terminal coding agent built for open models. On first run it asks which provider you want and opens the NVIDIA key page for you; paste the key and pick a model. Requests go from your computer to NVIDIA; Minni’s servers are never in the path and never see the key.

install MinniCode

```
# Windows, in PowerShell
irm https://minniai.com/install | iex

# macOS and Linux
curl -fsSL https://minniai.com/install | sh
```

Then type a task in your project folder. Every edit is shown as a diff first; commands, deletions and pushes need a yes. On the same tasks, a warm MinniCode session wrote 5,286 tokens to the model’s cache against 8,273 for Claude Code, 36% less; the method is on the [evidence page](https://minniai.com/evidence).

What a free model can and cannot do, OpenRouter as the other free source, and running a model on your own computer are in [How to run a coding agent on free, open models](https://minniai.com/learn/run-a-coding-agent-on-free-open-models). The commands are in the [MinniCode docs](https://minniai.com/minnicode/docs).

Try MinniMemoryMCP

Free, runs on your computer, and every change can be undone. Two commands install it for Claude Code; the [docs](https://minniai.com/minnimemorymcp/docs) cover Codex and the rest.

install it for Claude Code

```
$ npm i -g minnimemory
$ minnimemory install
```

## More guides

- [How to reduce Claude Code token usage](https://minniai.com/learn/reduce-claude-code-token-usage) Where the tokens go each turn, and eight ways to spend fewer.

Updated 2026-11-16 · Minni AI

- [Claude Code usage limit reached: what to do, and how to hit it less](https://minniai.com/learn/claude-code-usage-limit-reached) What each limit message means, what to do now, and how to send less every turn.

Updated 2026-11-16 · Minni AI

- [CLAUDE.md too long: what Claude Code does with it, and how to split it](https://minniai.com/learn/claude-md-too-long) What a long CLAUDE.md costs, the real size limits, and four ways to cut it.

Updated 2026-11-16 · Minni AI

- [Claude Code context window keeps filling up: why it compacts, and what to do](https://minniai.com/learn/claude-code-context-window-full) What fills the window, what compaction keeps, and how to compact less often.

Updated 2026-11-16 · Minni AI

- [How to reduce Codex token usage](https://minniai.com/learn/reduce-codex-token-usage) Where Codex spends tokens, and seven ways to spend fewer.

Updated 2026-11-16 · Minni AI

- [Codex usage limits: why they drain and how to use fewer tokens](https://minniai.com/learn/codex-usage-limits) How the windows work, how to check what is left, and what uses the allowance up.

Updated 2026-11-11 · Minni AI

- [AGENTS.md too large: what Codex cuts off and how to split it](https://minniai.com/learn/agents-md-too-large) The 32 KiB cap, how to see which files load, and five ways back under it.

Updated 2026-11-11 · Minni AI

- [How to lower a Claude Code or Codex API bill](https://minniai.com/learn/lower-claude-code-codex-api-bill) What a coding agent bills on an API key, and the levers that move it.

Updated 2026-11-16 · Minni AI

- [Why Claude Code sessions get expensive](https://minniai.com/learn/why-claude-code-sessions-get-expensive) Every turn re-sends the whole session. What makes that grow.

Updated 2026-11-05 · Minni AI

- [Claude Code memory: CLAUDE.md vs MinniMemoryMCP](https://minniai.com/learn/claude-code-memory-claude-md-vs-minnimemorymcp) What belongs in CLAUDE.md, and splitting the rest out by hand or with a tool.

Updated 2026-11-16 · Minni AI

- [MinniMemoryMCP vs Mem0, Zep, supermemory and Letta](https://minniai.com/learn/minnimemorymcp-vs-mem0-zep-supermemory-letta) Four tools add memory to an agent. MinniMemoryMCP cuts what the agent already loads. When each fits.

Updated 2026-11-16 · Minni AI

- [How Claude Code remembers across sessions](https://minniai.com/learn/claude-code-memory-across-sessions) What carries over between sessions, what does not, and how to keep it small.

Updated 2026-11-16 · Minni AI

- [Where Claude Code keeps its memory](https://minniai.com/learn/claude-code-memory-directory) Every memory path on your machine, what each file is for, and which ones load every turn.

Updated 2026-11-07 · Minni AI

- [How to run a coding agent on free, open models](https://minniai.com/learn/run-a-coding-agent-on-free-open-models) What a free key gets you, what a local model can do, and where the tokens go.

Updated 2026-10-25 · Minni AI

- [What a Windows PC optimization agent should and should not touch](https://minniai.com/learn/what-a-pc-optimization-agent-should-touch) The settings worth changing, the ones that are placebo, and the ones that break things.

Updated 2026-10-25 · Minni AI

---

Index for agents: https://minniai.com/llms.txt. Doing a task: https://minniai.com/agents.md
