Skip to content
Skill

Ergo agent setup

Sets up Claude Code, Codex and OpenCode to run Amazon Ergo 1.0 on Bedrock

Ergo agent setup is an open-source agent skill for cloud and infrastructure. It is available on Claude Code and Codex.

Scripts
shell, Python
Platforms
Claude Code, Codex
GitHub stars
469
Last commit
License
MIT-0
Listing updated

Similar skills

About Ergo agent setup

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.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 11 files (80 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

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.

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Ergo agent setup 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.

More from aws-samples/amazon-ai-samples

  1. Migrates Gemini Python code and prompts to Amazon Nova 2 Lite on Bedrock

    • Open source
    • 469 GitHub stars
    • AI models and LLM tooling
  2. Ports prompts from other LLMs to Amazon Nova and checks quality with evaluation runs

    • Open source
    • 469 GitHub stars
    • AI models and LLM tooling
  3. Rewrites and optimizes prompts specifically for Amazon Nova 1 models

    • Open source
    • 469 GitHub stars
    • AI models and LLM tooling
  4. Rewrites and tunes prompts for Amazon Nova 2 Lite, including multimodal inputs

    • Open source
    • 469 GitHub stars
    • Design and media
  5. Writes and reviews system prompts and tool descriptions for Nova Sonic 2.5 voice agents

    • Open source
    • 469 GitHub stars
    • AI models and LLM tooling
  6. Converts OpenAI Python code and prompts to Amazon Nova 2 Lite on Bedrock

    • Open source
    • 469 GitHub stars
    • AI models and LLM tooling