Use .env credentials for API calls
use-native-credential-proxyskillsetup L1★29,740
nanocoai/nanoclaw ↗What it does
Inject Anthropic API credentials from .env into container natively
Best for
Simple .env-based credentials for users avoiding OneCLI vault while keeping authentication straightforward.
Inputs
- · .env file with ANTHROPIC_API_KEY or CLAUDE_CODE_OAUTH_TOKEN
Outputs
- · Docker -e environment arguments
- · conditional no-op if flag unset
Requires
- · Docker
- · NanoClaw container-runner.ts
Preconditions
- · NANOCLAW_NATIVE_CREDENTIALS=true set in .env
- · one of API_KEY/OAUTH_TOKEN defined
Failure modes
- · missing credential env var causes container to start unauthenticated
- · OneCLI gateway still used if flag unset
Trust signals
- · single one-line reach-in at container-spawn seam
- · gated by explicit env flag
- · native proxy is no-op when disabled
- · behavior+wiring tests included