Cc AWS Keepalive — DevOps skill for Claude Code
Keep Claude Code sessions alive through AWS credential expiry -- proactive expiration warnings, credential refresh bypass for Bedrock SSO/SAML, optional statusline countdown timer.
How to install Cc AWS Keepalive
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open GeiserX/cc-aws-keepalive and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Cc AWS Keepalive does
Keep Claude Code sessions alive through AWS credential expiration. No more restarting terminal tabs every time your SSO/SAML session expires.
Alternatives in DevOps
README
cc-aws-keepalive
Keep Claude Code sessions alive through AWS credential expiration. No more restarting terminal tabs every time your SSO/SAML session expires.
Problem
When using Claude Code with AWS Bedrock, the AWS SDK caches credentials in memory. After your SSO/SAML session expires (typically every 8-12 hours), all Claude Code sessions become unresponsive and must be restarted — often corrupting conversations and losing context.
Solution
Four Node.js scripts (cross-platform: macOS, Linux, Windows) that hook into Claude Code's credential lifecycle:
| Script | Purpose | CC Setting |
|---|---|---|
aws-cred-export.mjs |
Reads fresh creds from ~/.aws/credentials, bypassing SDK in-memory cache |
awsCredentialExport |
aws-auth-refresh.mjs |
On auth failure, checks if you already re-authed in another terminal | awsAuthRefresh |
aws-cred-check.mjs |
Proactive check before each prompt — warns if expired or nearing expiry | hooks.UserPromptSubmit |
aws-statusline.mjs |
Optional persistent timer in the status bar (e.g., AWS: 4h23m) |
statusLine |
How it works
**Before expiry (proactive):**
- You submit a prompt in Claude Code
- The
UserPromptSubmithook checks credential expiration - If nearing expiry: inline warning with re-auth instructions
- If expired: warns inline — the prompt proceeds and
awsAuthRefreshhandles recovery
**After expiry (reactive):**
- Claude Code hits a Bedrock 403
awsAuthRefreshruns — checks if you already re-authed in another terminalawsCredentialExportreads fresh creds from disk (bypassing SDK memory cache)- Claude Code retries the API call — session continues without restart
The key insight
...
Related Skills
AWS Profile
AWS profile management for MCP servers — discover profiles across SSO, Granted, and assumed-role chains, check
LLMSwaper
Local dashboard to switch the active Claude Code account with one click, showing each account's 5-hour and wee
Capy Bridge Skill
HappyCapy skill: Connect any Mac in 30 seconds. Claude Code capabilities with local Mac terminal access. Zero
Add Cron Azure
Create scheduled background jobs using Azure Functions timer triggers. Implement timer-triggered function with
Cover
Keep private data, internal infrastructure and secrets out of cloud coding agents without breaking your workfl
Claude Code AWS Gateway
new Self-hosted API gateway that routes Claude Code through Amazon Bedrock with team API keys, budgets, rate l
Related Agents
Statusline
Statusline feature specialist. ALWAYS use for ANY task involving statusline metrics, cluster health display, o
AWS AI Terraform
Write, extend, and review the Terraform in this repo for AWS AI/ML services on the AI Practitioner (AIF-C01) e
CORS Hunter
CORS Misconfiguration specialist (H1 #58). Use for testing cross-origin resource sharing policies, origin refl