Skip to content

Commit 990982f

Browse files
committed
Add new configuration and permission settings for enhanced functionality
- Introduced settings for Amazon Bedrock, Google Vertex AI, and corporate proxy configurations. - Added custom headers support for API requests. - Implemented API key helper for dynamic authentication token generation. - Restricted login methods to Claude.ai and Anthropic Console accounts. - Configured bash command execution timeouts and performance optimizations. - Enhanced privacy settings by disabling telemetry and non-essential traffic. - Established AWS credential management for Bedrock integration. - Allowed additional directory access and common git operations. - Created comprehensive permissions for development and read-only modes. - Developed various status line configurations for improved user experience.
1 parent e85f846 commit 990982f

29 files changed

+462
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"description": "Configure Claude Code to use Amazon Bedrock for AI model access. Enables enterprise-grade deployment with AWS billing and compliance features, ideal for organizations already using AWS infrastructure.",
3+
"env": {
4+
"CLAUDE_CODE_USE_BEDROCK": "1",
5+
"AWS_BEARER_TOKEN_BEDROCK": "your-bedrock-api-key"
6+
}
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"description": "Configure proxy settings for corporate network environments. Allows Claude Code to work behind corporate firewalls and proxy servers while maintaining security compliance with enterprise network policies.",
3+
"env": {
4+
"HTTP_PROXY": "http://proxy.company.com:8080",
5+
"HTTPS_PROXY": "https://proxy.company.com:8080"
6+
}
7+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"description": "Add custom headers to API requests for specialized authentication or routing requirements. Useful for enterprise deployments with custom authentication systems or API gateways that require additional metadata.",
3+
"env": {
4+
"ANTHROPIC_CUSTOM_HEADERS": "X-Company-ID: your-company-id\\nX-Environment: production\\nX-API-Version: v1"
5+
}
6+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"description": "Configure Claude Code to use Google Vertex AI for AI model access. Provides integration with Google Cloud Platform infrastructure and billing, suitable for organizations using GCP services.",
3+
"env": {
4+
"CLAUDE_CODE_USE_VERTEX": "1",
5+
"VERTEX_REGION_CLAUDE_3_5_SONNET": "us-central1",
6+
"VERTEX_REGION_CLAUDE_3_5_HAIKU": "us-central1"
7+
}
8+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"description": "Configure a custom script to dynamically generate authentication tokens. The script will be executed to obtain fresh API keys, useful for environments with rotating credentials or temporary access tokens. TTL is set to 1 hour (3600000ms).",
3+
"apiKeyHelper": "/bin/generate_temp_api_key.sh",
4+
"env": {
5+
"CLAUDE_CODE_API_KEY_HELPER_TTL_MS": "3600000"
6+
}
7+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"description": "Restrict authentication to Claude.ai accounts only. This prevents users from logging in with Anthropic Console accounts, ensuring all access goes through the Claude.ai platform for consistent user experience and billing.",
3+
"forceLoginMethod": "claudeai"
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"description": "Restrict authentication to Anthropic Console accounts only. This ensures all usage is billed through the API billing system and prevents access via Claude.ai accounts, ideal for enterprise environments with centralized billing.",
3+
"forceLoginMethod": "console"
4+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"description": "Configure timeout settings for bash command execution. Prevents long-running commands from hanging indefinitely while allowing sufficient time for complex operations like builds and deployments.",
3+
"env": {
4+
"BASH_DEFAULT_TIMEOUT_MS": "120000",
5+
"BASH_MAX_TIMEOUT_MS": "600000",
6+
"BASH_MAX_OUTPUT_LENGTH": "100000"
7+
}
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"description": "Enhanced development environment configuration with useful utilities and debugging features. Includes built-in ripgrep usage, terminal title updates, and directory maintenance for improved developer experience.",
3+
"env": {
4+
"USE_BUILTIN_RIPGREP": "1",
5+
"CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR": "1",
6+
"CLAUDE_CODE_DISABLE_TERMINAL_TITLE": "0"
7+
}
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"description": "Optimize Claude Code performance by adjusting token limits and disabling non-essential features. Reduces API costs and improves response times for development workflows focused on code quality over conversational features.",
3+
"env": {
4+
"CLAUDE_CODE_MAX_OUTPUT_TOKENS": "8000",
5+
"DISABLE_NON_ESSENTIAL_MODEL_CALLS": "1",
6+
"DISABLE_COST_WARNINGS": "1"
7+
}
8+
}

0 commit comments

Comments
 (0)