Secrets Access
This guide covers how to access the shared secrets needed for development with Kun.
Required Secrets
| Secret | Purpose | How to Get |
|---|---|---|
ANTHROPIC_API_KEY | Claude Code API access | Request from admin |
GITHUB_TOKEN | Access to databayt org repos | Request from admin |
VERCEL_TOKEN | Deployment access | Request from admin |
Setup Process
1. Request Access
Contact your team admin to request the following:
# You'll receive these credentials
ANTHROPIC_API_KEY=sk-ant-***
GITHUB_TOKEN=ghp_***
VERCEL_TOKEN=***2. Configure Claude Code
Add your Anthropic API key to Claude Code:
# Set the API key
export ANTHROPIC_API_KEY="your-key-here"
# Or add to your shell profile (~/.zshrc or ~/.bashrc)
echo 'export ANTHROPIC_API_KEY="your-key-here"' >> ~/.zshrc3. Configure GitHub
Authenticate with GitHub CLI:
# Login with your token
gh auth login --with-token < token.txt
# Or interactively
gh auth login4. Configure Vercel (Optional)
For deployment access:
# Login to Vercel
vercel login
# Or use token
vercel --token YOUR_TOKENProject-Specific Environment Variables
Each project may have its own .env file requirements. Check the project's README or ask the team for:
- Database connection strings
- Third-party API keys
- Feature flags
- Service URLs
Example .env Structure
# Database
DATABASE_URL="postgresql://..."
# Auth
NEXTAUTH_SECRET="..."
NEXTAUTH_URL="http://localhost:3000"
# APIs
STRIPE_SECRET_KEY="sk_..."
RESEND_API_KEY="re_..."Security Guidelines
- Never commit secrets to git repositories
- Use
.env.localfor local development (already in.gitignore) - Rotate keys if you suspect they've been compromised
- Use environment variables instead of hardcoding values
Requesting New Secrets
If you need access to a new service:
- Open an issue in the project repository
- Describe what access you need and why
- Admin will provision and share securely
Troubleshooting
Claude Code Not Authenticating
# Verify key is set
echo $ANTHROPIC_API_KEY
# Test connection
claude --versionGitHub Permission Denied
# Check auth status
gh auth status
# Re-authenticate if needed
gh auth loginVercel Deployment Fails
# Check login status
vercel whoami
# Link project if needed
vercel linkOn This Page
Secrets AccessRequired SecretsSetup Process1. Request Access2. Configure Claude Code3. Configure GitHub4. Configure Vercel (Optional)Project-Specific Environment VariablesExample .env StructureSecurity GuidelinesRequesting New SecretsTroubleshootingClaude Code Not AuthenticatingGitHub Permission DeniedVercel Deployment Fails