use-native-credential-proxy

Read credentials from .env and inject them into container environment variables.

Updated May 7, 2026
One-click install
npx skills add https://github.com/Bartunek/nanoclaw --skill use-native-credential-proxy-bartunek
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: use-native-credential-proxy
Source: https://github.com/Bartunek/nanoclaw/tree/main/.claude/skills/use-native-credential-proxy
Command: npx skills add https://github.com/Bartunek/nanoclaw --skill use-native-credential-proxy-bartunek

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Opt out of the OneCLI gateway and supply Anthropic credentials from .env instead. For users who want simple .env-based credential management without the OneCLI agent vault. Reads the API key or OAuth token from .env and injects it into the container's API requests.

Core Features & Use Cases

  • Native, .env-based credential path for the container agent — an explicit opt-out of the OneCLI gateway.
  • Reads ANTHROPIC_API_KEY, ANTHROPIC_AUTH_TOKEN, CLAUDE_CODE_OAUTH_TOKEN, and optional ANTHROPIC_BASE_URL from .env via core's readEnvFile.
  • Injects credentials into the container as standard environment variables during spawn.
  • Preserves the default OneCLI flow when the native credential path is disabled.
  • Ships proxy logic and tests in the skill and copies them into src for execution.

Quick Start

Enable the native credential path by setting NANOCLAW_NATIVE_CREDENTIALS=true in .env and restart NanoClaw.

Frequently Asked Questions about use-native-credential-proxy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I inject Anthropic API keys from a .env file into a container environment?▼

To inject Anthropic API keys from a .env file into a container environment, you enable the native credential path by setting NANOCLAW_NATIVE_CREDENTIALS=true. This reads credentials like ANTHROPIC_API_KEY and injects them as standard environment variables during container spawn.

Can I use .env credentials to bypass the OneCLI vault for container agents?▼

Yes, you can use .env credentials to bypass the OneCLI vault by enabling the native credential path. This opt-out mechanism directly reads API keys and OAuth tokens from your .env file instead of relying on the OneCLI agent vault.

What environment variables are read for native .env-based credential management?▼

Native .env-based credential management reads ANTHROPIC_API_KEY, ANTHROPIC_AUTH_TOKEN, CLAUDE_CODE_OAUTH_TOKEN, and an optional ANTHROPIC_BASE_URL. These are parsed via core's readEnvFile and passed into the container environment.

Does enabling native credentials disable the default OneCLI gateway flow?▼

Enabling native credentials provides an explicit opt-out of the OneCLI gateway, but the default OneCLI flow is preserved when the native credential path is disabled. You switch between them by toggling the NANOCLAW_NATIVE_CREDENTIALS setting.

How do I pass ANTHROPIC_BASE_URL when using .env credentials in container spawn?▼

To pass ANTHROPIC_BASE_URL when using .env credentials, include it in your .env file alongside your API keys. The skill wires a reach-in during container-spawn to pass these -e variables into the environment when the native path is activated.

Why are my .env OAuth tokens not working with the OneCLI container agent?▼

Your .env OAuth tokens may not work with the OneCLI container agent because the native credential path is not activated. You must set NANOCLAW_NATIVE_CREDENTIALS=true in your .env file and restart NanoClaw to bypass the vault.