AI Cloud Architect

Use Kimi Code CLI with models on Amazon Bedrock

AWSHow-to by Alex ThewseyAWS Artificial Intelligence Blog

Kimi Code CLI v2.7.0 adds a native Amazon Bedrock provider, so you can connect the open source coding agent to models like Kimi K3.1 Pro using your standard AWS credential chain (named profiles or SSO) instead of a separate API key. This post shows how to configure the provider and send your first request.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

Kimi Code CLI v2.7.0 adds a native Bedrock provider, so it can use AWS credential chains (profiles, SSO) instead of a separate Bedrock API key to call Kimi models.

Who it is for

Developers and teams already on Kimi Code CLI who want to run Kimi models on Amazon Bedrock with their existing AWS sign-in.

Key points

  • Requires Kimi Code CLI v2.7.0 or later and an explicit AWS_REGION in config.toml; a region set only in AWS CLI config is not used.
  • Walkthrough uses the global cross-Region inference profile global.moonshotai.kimi-k3.1, priced about 10% lower than geographic profiles per the post.
  • Ephemeral keys generated by the provider are valid for up to 12 hours or the AWS session length, whichever is shorter.

Timeline

  1. What it explainsKimi K3.1 Pro (Highspeed) now available on Amazon Bedrock · AWS · Announcement
  2. This postUse Kimi Code CLI with models on Amazon Bedrock

Go deeper