# Ergo agent setup

> Ergo agent setup is an open-source agent skill for cloud and infrastructure. Sets up Claude Code, Codex and OpenCode to run Amazon Ergo 1.0 on Bedrock. It is available on Claude Code and Codex.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex
- **Website:** https://github.com/aws-samples/amazon-ai-samples/tree/main/Ergo/skills/ergo-agent-setup
- **Repository:** https://github.com/aws-samples/amazon-ai-samples
- **GitHub stars:** 469
- **License:** MIT-0
- **Skill name:** ergo-agent-setup
- **Collection:** https://github.com/aws-samples/amazon-ai-samples
- **Categories:** [cloud and infrastructure](https://ai-powered.com/categories/cloud-and-infrastructure)
- **Listing updated:** 2026-12-03

## About

This skill walks an agent through configuring each installed coding agent (Claude Code, Codex or OpenCode) to use the Amazon Ergo 1.0 model on Amazon Bedrock alongside the user's current model. It explains the model's context, output and reasoning limits and how each agent is set to respect them, and it routes the user to per-agent reference files for details.

The workflow checks AWS access first by creating a short-term Bedrock API key from the user's AWS credentials and sending a small test request. Helper scripts in Python, run through uv, then write the agent configuration with backups, and a local proxy can renew keys every 30 minutes for longer sessions. The skill instructs the agent to have the user enter AWS keys in their own terminal rather than in the chat.

It expects an AWS account with access to Amazon Ergo 1.0 on Bedrock, Python 3.9 or newer, and uv. It covers macOS, Linux and Windows, and includes guidance for refreshing expired keys and troubleshooting.

## When your agent uses it

> Set up Claude Code, Codex and/or OpenCode to use the Amazon Ergo 1.0 model on Amazon Bedrock with the user's own AWS credentials (short-term keys, nothing to create in the Bedrock console). Use when someone says "set up Amazon Ergo 1.0", "use ergo in Codex / OpenCode / Claude Code", or "connect my coding agent to Bedrock". Works on macOS, Linux and Windows.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs shell and Python scripts](https://github.com/aws-samples/amazon-ai-samples/tree/HEAD/Ergo/skills/ergo-agent-setup)
- [Network calls found in its scripts](https://github.com/aws-samples/amazon-ai-samples/tree/HEAD/Ergo/skills/ergo-agent-setup)
- [License: MIT-0](https://github.com/aws-samples/amazon-ai-samples/tree/HEAD/Ergo/skills/ergo-agent-setup)

## Features

- **Multi-agent configuration:** Sets up Claude Code, Codex and OpenCode to call the Ergo 1.0 model through Bedrock.
- **Short-term key generation:** Derives temporary Bedrock API keys from AWS credentials so no long-term key is stored.
- **Access check:** Sends a small test request to confirm the account can use the model before configuring anything.
- **Key refresh workflow:** Renews expired keys and explains which agents need a restart afterward.
- **Optional local proxy:** Runs a loopback proxy that renews keys automatically for long-running sessions.
- **Troubleshooting reference:** Lists known setup problems with their causes and fixes.

## Good for

- Set up Amazon Ergo 1.0 in Claude Code using my AWS credentials
- Connect Codex to the Ergo model on Bedrock
- Configure OpenCode to use Amazon Ergo 1.0 as an extra model
- Refresh an expired Bedrock key for my coding agent
- Check whether my AWS account can access Amazon Ergo 1.0

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/ergo-agent-setup` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aws-samples/amazon-ai-samples.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/ergo-agent-setup &&
cp -R "$tmp/Ergo/skills/ergo-agent-setup" ~/.claude/skills/ergo-agent-setup &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/ergo-agent-setup` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/ergo-agent-setup` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aws-samples/amazon-ai-samples.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/ergo-agent-setup &&
cp -R "$tmp/Ergo/skills/ergo-agent-setup" ~/.agents/skills/ergo-agent-setup &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/ergo-agent-setup` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/ergo-agent-setup` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aws-samples/amazon-ai-samples.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/ergo-agent-setup &&
cp -R "$tmp/Ergo/skills/ergo-agent-setup" ~/.cursor/skills/ergo-agent-setup &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/ergo-agent-setup` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/aws-samples/amazon-ai-samples.git --path Ergo/skills/ergo-agent-setup
```

Or copy the folder to `~/.gemini/skills/ergo-agent-setup` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/ergo-agent-setup`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aws-samples/amazon-ai-samples.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/ergo-agent-setup &&
cp -R "$tmp/Ergo/skills/ergo-agent-setup" ~/.copilot/skills/ergo-agent-setup &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/ergo-agent-setup` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/aws-samples/amazon-ai-samples.git
```

Then copy `amazon-ai-samples/Ergo/skills/ergo-agent-setup` into your agent's skills folder as `ergo-agent-setup`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What do I need before using Ergo agent setup?

Python 3.9 or newer, uv, and AWS credentials for an account with access to Amazon Ergo 1.0 on Amazon Bedrock. The IAM permissions bedrock:InvokeModel and bedrock:InvokeModelWithResponseStream on its inference profiles are needed.

### Does Ergo agent setup change my default model?

No. The skill is written to add Amazon Ergo 1.0 next to the user's current model and leave the default unchanged unless the user asks.

### Do I need a long-term Bedrock API key?

No. The scripts create a short-term Bedrock API key, valid up to 12 hours, from the AWS credentials whenever needed.

### Which operating systems are supported?

The skill states it works on macOS, Linux and Windows.

### How do I install Ergo agent setup in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/ergo-agent-setup to use it in all your projects, or to .claude/skills/ergo-agent-setup in one project.

### Does Ergo agent setup run scripts?

Yes. It runs shell and Python scripts. Its scripts contain network calls. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Ergo agent setup?

Claude Code and Codex. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Ergo agent setup?

The closest alternatives to Ergo agent setup are Agentcore sandbox, Agents SDK, Runpod companion clis, Deploy and Polly avatar.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Agentcore sandbox](https://ai-powered.com/skills/agentcore-sandbox): Agentcore sandbox is an open-source agent skill for cloud and infrastructure.
- [Agents SDK](https://ai-powered.com/skills/agents-sdk): Agents SDK is an open-source agent skill for developer tools.
- [Runpod companion clis](https://ai-powered.com/skills/runpod-companion-clis): Runpod companion clis is an open-source agent skill for cloud and infrastructure.
- [Deploy](https://ai-powered.com/skills/deploy-maxwell2732): Deploy is an open-source agent skill for cloud and infrastructure.
- [Polly avatar](https://ai-powered.com/skills/polly-avatar): Polly avatar is an open-source agent skill for cloud and infrastructure.
- [Ewccli](https://ai-powered.com/skills/ewccli): Ewccli is an open-source agent skill for cloud and infrastructure.
- [Cloud operator setup](https://ai-powered.com/skills/cloud-operator-setup): Cloud operator setup is an open-source agent skill for cloud and infrastructure.
- [Google cloud solution build deploy agents](https://ai-powered.com/skills/google-cloud-solution-build-deploy-agents): Google cloud solution build deploy agents is an open-source agent skill for cloud and infrastructure.

---
Source: https://ai-powered.com/skills/ergo-agent-setup
