Skip to main content
prompt GP ChatGPT

05-env-and-auth — Claude Code prompt: what it does, how to install

05-env-and-auth sets up environment variables and tests API connectivity in claude-code workspaces. Creates a documented .env.example and builds a test script for Bun.

no license ★ 3,444 updated 2026-10-14

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/commands/05-env-and-auth.md
Open on GitHub

What 05-env-and-auth does

This prompt guides Claude Code through configuring authentication in the claude-code repository. The agent inspects src/ to catalog configuration variables, debug toggles, and custom endpoints. It then writes a structured .env.example grouped by purpose.

The task inspects src/services/api/client.ts to trace client setup. It documents backend routing between direct API tokens, OAuth sessions, AWS Bedrock, Google Vertex AI, and Azure Foundry. It also generates scripts/test-auth.ts and documents how to bypass browser OAuth locally.

Executing the test script requires bun installed in your terminal environment.

What it helps with

  • audit source files to extract every active environment variable
  • build a clean .env.example file with configuration comments
  • generate scripts/test-auth.ts to validate Anthropic credentials
  • trace backend selection across Direct API, Bedrock, and Vertex AI
  • document stubs to bypass interactive OAuth during development

Example prompts for the agent

  • Run the instructions in 05-env-and-auth to audit our environment variables
  • Inspect the src/ directory and assemble a fresh .env.example
  • Generate scripts/test-auth.ts and verify the Anthropic connection via Bun

How to install 05-env-and-auth

Manually: put the files in place

.claude/commands/05-env-and-auth.md

Questions about 05-env-and-auth

How to install 05-env-and-auth in Claude Code?

Place the prompt contents in .claude/commands/05-env-and-auth.md. You can then invoke it directly in your Claude Code workspace.

What does 05-env-and-auth do?

It commands Claude Code to audit repository auth logic, create .env.example, and write a test script that validates your Anthropic credentials.

Which authentication backends does this prompt review?

The instructions check direct API keys, Claude subscription OAuth, AWS Bedrock, Google Vertex AI, and Azure Foundry.

Similar prompts

All prompts for Agent setup: memory, context, orchestration →

From the same set17

The whole set →
16-testing The 16-testing prompt wires up Vitest in the claude-code project and writes tests for shims, tools, commands and context. It fires when the leaked-and-rebuilt source has no test suite at all. GP ChatGPT ★ 3,444repo stars 15-production-bundle 15-production-bundle is a Claude Code prompt for configuring production bundling and packaging of CLI tools for Node.js 20+ and Bun 1.1+. GP ChatGPT ★ 3,444repo stars 11-mcp-integration The 11-mcp-integration prompt guides an investigation of Claude Code’s MCP client and server mode. Use it to inspect configuration and outline a client-to-server test. GP ChatGPT ★ 3,444repo stars 10-context-and-prompts 10-context-and-prompts takes the agent through the CLI prompt layer: reads the builder, repairs context collection on Linux, connects memory from CLAUDE.md. The last step is a script that prints the finished prompt. GP ChatGPT ★ 3,444repo stars 07-tool-system 07-tool-system is a Claude Code prompt for auditing the CLI tool interface, registry, and imports. It also asks for a smoke test that loads the available tools. GP ChatGPT ★ 3,444repo stars 06-ink-react-terminal-ui 06-ink-react-terminal-ui — a Claude prompt that follows the React + Ink render path in the claude-code repo, checks the components and theme, and ends with a working terminal render test. GP ChatGPT ★ 3,444repo stars 14-dev-runner The 14-dev-runner prompt configures a development runner for Claude Code to execute TypeScript directly with Bun. It eliminates the need for full production builds during iterative work. GP ChatGPT ★ 3,444repo stars 09-query-engine The 09-query-engine prompt guides an architecture review of QueryEngine and a basic conversation test against the Anthropic API. Use it to trace requests, streaming events, and tool calls. GP ChatGPT ★ 3,444repo stars

Project sponsors

Companies that keep this analytics open