# Why is Anthropic the one service I *can't* store API keys for safely in Claude Code? — retained record

> Retained reddit record from reddit:ClaudeCode.

Canonical: https://highsignal.app/data/records/10b5c61f47256fbd

[← sources](https://highsignal.app/data)


source: [reddit](https://highsignal.app/data/reddit) (reddit:ClaudeCode)  published 2026-10-09 08:44 ingested 2026-10-10 02:37

[original source ↗](https://www.reddit.com/r/ClaudeCode/comments/1x1g59v/why_is_anthropic_the_one_service_i_cant_store_api/)

## retained text



```
I often need Claude to run evals or do ad-hoc tests of prompts and models during development. The easy way to do this is to give the thread an API key to use, but this is manual and not the most secure.

When I go to create a key, it keeps reminding me to use Federated Identity - but Claude Code isn't one of the supported platforms!

Recently Network Secrets were added to Projects and Cloud Environments, and this also seems like a great solution - but [api.anthropic.com](http://api.anthropic.com) isn't allowed.

Why is Anthropic, of all things, the one platform I can't securely store keys for? At the moment it looks like my only viable solution is a custom GitHub action, which doesn't work so well for ad-hoc stuff.
```



document fetched 2026-10-10 00:40 · canonical https://reddit.com/r/ClaudeCode/comments/1x1g59v/why_is_anthropic_the_one_service_i_cant_store_api
