juggernaut-bedrock 4.0.1 → 4.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +118 -0
- package/package.json +21 -3
package/README.md
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
# juggernaut-bedrock
|
|
2
|
+
|
|
3
|
+
**Claude Code → Amazon Bedrock in one command.**
|
|
4
|
+
|
|
5
|
+
Juggernaut is a cross-platform CLI that wires [Claude Code](https://docs.anthropic.com/en/docs/claude-code) to [Amazon Bedrock](https://aws.amazon.com/bedrock/) instead of Anthropic's direct API. One install, one `apply`, then just run `claude` — no shell profile hacks, no manual env vars, no jq.
|
|
6
|
+
|
|
7
|
+
Built for developers shipping with GenAI today: IAM and SSO for teams, API keys for solo runs, and a `doctor` command when something's off.
|
|
8
|
+
|
|
9
|
+
<p align="center">
|
|
10
|
+
<a href="https://github.com/jpvelasco/juggernaut/actions/workflows/ci.yml"><img src="https://github.com/jpvelasco/juggernaut/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
|
|
11
|
+
<a href="https://github.com/jpvelasco/juggernaut/releases/latest"><img src="https://img.shields.io/github/v/release/jpvelasco/juggernaut" alt="Release"></a>
|
|
12
|
+
<a href="https://www.npmjs.com/package/juggernaut-bedrock"><img src="https://img.shields.io/npm/v/juggernaut-bedrock" alt="npm"></a>
|
|
13
|
+
<a href="https://app.codacy.com/gh/jpvelasco/juggernaut/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade"><img src="https://app.codacy.com/project/badge/Grade/2bf1e68b80964537b5c65350663c3073" alt="Codacy Grade"></a>
|
|
14
|
+
</p>
|
|
15
|
+
|
|
16
|
+
## Install
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
npm install -g juggernaut-bedrock
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Or try it without installing globally:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
npx juggernaut-bedrock version
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Works on **macOS**, **Linux**, **Windows**, and **WSL** — `x64` and `arm64`.
|
|
29
|
+
|
|
30
|
+
## Quickstart
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
# 1. Install (above)
|
|
34
|
+
|
|
35
|
+
# 2. Configure — IAM/SSO (recommended) or interactive prompt
|
|
36
|
+
juggernaut apply --auth=iam
|
|
37
|
+
|
|
38
|
+
# 3. Launch Claude Code (token injected automatically)
|
|
39
|
+
claude
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Bedrock API key auth? Run `juggernaut apply` and follow the prompt — credentials land in your OS keychain, not your shell history.
|
|
43
|
+
|
|
44
|
+
## What it does
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
juggernaut apply --auth=iam
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
That one command:
|
|
51
|
+
|
|
52
|
+
1. **Writes** Bedrock config to `~/.claude/settings.json` (or project scope)
|
|
53
|
+
2. **Sets** model IDs, region, effort level, and `CLAUDE_CODE_USE_BEDROCK=1` — only after credentials check out
|
|
54
|
+
3. **Installs** a `claude` launcher shim that reads your token from the keychain and execs the real binary
|
|
55
|
+
|
|
56
|
+
No `.bashrc` edits. No copying API keys into env vars. No "why isn't Bedrock routing?" at 2am.
|
|
57
|
+
|
|
58
|
+
## Why Bedrock?
|
|
59
|
+
|
|
60
|
+
| | Direct Anthropic API | Amazon Bedrock |
|
|
61
|
+
|---|---------------------|----------------|
|
|
62
|
+
| **Billing** | Separate account | Your AWS bill |
|
|
63
|
+
| **Auth** | API keys | IAM, SSO, roles |
|
|
64
|
+
| **Region** | Anthropic infra | Your chosen AWS region |
|
|
65
|
+
| **Compliance** | Anthropic certs | SOC, HIPAA, FedRAMP via AWS |
|
|
66
|
+
| **Network** | Public internet | VPC endpoints, PrivateLink |
|
|
67
|
+
|
|
68
|
+
## Auth modes
|
|
69
|
+
|
|
70
|
+
| Mode | Command | Best for |
|
|
71
|
+
|------|---------|----------|
|
|
72
|
+
| **IAM / SSO** | `juggernaut apply --auth=iam` | Teams, enterprise, existing AWS identity |
|
|
73
|
+
| **Bedrock API key** | `juggernaut apply` | Solo devs, quick setup |
|
|
74
|
+
| **Interactive** | `juggernaut apply` (no flags) | First run — guided prompts |
|
|
75
|
+
| **Preview** | `juggernaut apply --dry-run` | See what would change, change nothing |
|
|
76
|
+
|
|
77
|
+
## Commands
|
|
78
|
+
|
|
79
|
+
| Command | What it does |
|
|
80
|
+
|---------|--------------|
|
|
81
|
+
| `apply` | Configure Bedrock + install the `claude` shim |
|
|
82
|
+
| `show` | Print your current Juggernaut config |
|
|
83
|
+
| `doctor` | Diagnostics — block, credentials, launcher |
|
|
84
|
+
| `migrate` | Upgrade from v3 shell installer to v4 Go binary |
|
|
85
|
+
| `uninstall` | Remove config, token, and shim |
|
|
86
|
+
| `version` | Print installed version (`--json` for machines) |
|
|
87
|
+
|
|
88
|
+
## Default models
|
|
89
|
+
|
|
90
|
+
| Tier | Model |
|
|
91
|
+
|------|-------|
|
|
92
|
+
| **Primary** | Claude Sonnet 4.6 |
|
|
93
|
+
| **Opus** | Claude Opus 4.7 |
|
|
94
|
+
| **Fast** | Claude Haiku 4.5 |
|
|
95
|
+
|
|
96
|
+
Override any tier: `juggernaut apply --auth=iam --model=global.anthropic.claude-sonnet-4-6`
|
|
97
|
+
|
|
98
|
+
## Troubleshooting
|
|
99
|
+
|
|
100
|
+
Stuck? Start here:
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
juggernaut doctor
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
Common fixes: complete Anthropic model access in the Bedrock console (403), refresh SSO (`aws sso login`), or re-run `juggernaut apply`.
|
|
107
|
+
|
|
108
|
+
## Documentation
|
|
109
|
+
|
|
110
|
+
Full docs, IAM policy, migration guide, and platform notes:
|
|
111
|
+
|
|
112
|
+
**[github.com/jpvelasco/juggernaut](https://github.com/jpvelasco/juggernaut)**
|
|
113
|
+
|
|
114
|
+
## License
|
|
115
|
+
|
|
116
|
+
MIT — see [LICENSE](https://github.com/jpvelasco/juggernaut/blob/main/LICENSE).
|
|
117
|
+
|
|
118
|
+
Juggernaut is an independent tool, not affiliated with Anthropic or Amazon Web Services.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "juggernaut-bedrock",
|
|
3
|
-
"version": "4.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "4.0.3",
|
|
4
|
+
"description": "Route Claude Code through Amazon Bedrock in one command — IAM, SSO, or API key. Cross-platform CLI for GenAI developers.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"juggernaut": "./bin/juggernaut"
|
|
7
7
|
},
|
|
@@ -14,11 +14,29 @@
|
|
|
14
14
|
},
|
|
15
15
|
"os": ["darwin", "linux", "win32"],
|
|
16
16
|
"cpu": ["x64", "arm64"],
|
|
17
|
-
"keywords": [
|
|
17
|
+
"keywords": [
|
|
18
|
+
"claude",
|
|
19
|
+
"claude-code",
|
|
20
|
+
"bedrock",
|
|
21
|
+
"amazon-bedrock",
|
|
22
|
+
"aws",
|
|
23
|
+
"anthropic",
|
|
24
|
+
"genai",
|
|
25
|
+
"ai-coding",
|
|
26
|
+
"llm",
|
|
27
|
+
"coding-agent",
|
|
28
|
+
"cli",
|
|
29
|
+
"iam",
|
|
30
|
+
"sso",
|
|
31
|
+
"developer-tools"
|
|
32
|
+
],
|
|
18
33
|
"license": "MIT",
|
|
19
34
|
"repository": {
|
|
20
35
|
"type": "git",
|
|
21
36
|
"url": "https://github.com/jpvelasco/juggernaut"
|
|
22
37
|
},
|
|
38
|
+
"bugs": {
|
|
39
|
+
"url": "https://github.com/jpvelasco/juggernaut/issues"
|
|
40
|
+
},
|
|
23
41
|
"homepage": "https://github.com/jpvelasco/juggernaut#readme"
|
|
24
42
|
}
|