Install Claude Code quickly and configure it with SSO and AWS Bedrock.
Before starting, ensure you have:
Install Claude Code using the official installation script:
curl -fsSL https://claude.ai/install.sh | bash
After installation, verify it's working by running:
claude --version
Create a configuration file at ~/.claude/settings.json to customize Claude Code's behavior:
Important: When using Bedrock, you must use the exact model IDs as they appear in your AWS Bedrock console. Model availability varies by AWS region and account permissions. Verify these models are accessible in your AWS account before using them.
For enterprise environments using SSO (like Okta), you'll need to authenticate to get temporary AWS credentials. Use a command similar to this, replacing the placeholders with your organization's specific values:
Note: Replace
your-org.okta.com,YOUR_OIDC_CLIENT_ID, andYOUR_AWS_FEDERATION_APP_IDwith your organization's actual values. Contact your IT administrator if you don't have these details.
The --session-duration 36000 parameter sets the session to last for 10 hours, reducing the need for frequent re-authentication.
Once configured and authenticated, start Claude Code by simply running:
claude
This will open an interactive session where you can chat with Claude, execute code, and perform various development tasks.
If you encounter SSL certificate errors like:
platform.claude.com: SELF_SIGNED_CERT_IN_CHAIN
This typically occurs in corporate environments with SSL inspection. You can temporarily bypass this by setting:
export NODE_TLS_REJECT_UNAUTHORIZED=0
Security Warning: Only use this workaround in trusted corporate environments. It disables SSL certificate verification and should not be used in production or untrusted networks.