# Amazon — Use Kimi Code CLI with models on Amazon Bedrock

- Company: Amazon (amazon.com)
- Announced: 2026-11-20T00:33:30+00:00
- Category: not stated
- Coverage: not counted
- Announcement: no
- Group: routine
- Source: https://aws.amazon.com/blogs/machine-learning/use-kimi-code-cli-with-models-on-amazon-bedrock/
- Record: https://forck.live/items/39013-use-kimi-code-cli-with-models-on-amazon-bedrock
- Subject: Bedrock / Nova
- Models affected: Kimi K3.1 Pro Highspeed, Kimi K3.1

Moonshot AI's Kimi Code CLI v2.7.0 adds a native Amazon Bedrock provider, letting developers authenticate with their existing AWS credential chain instead of a separate Bedrock API key. Previously, connecting the open source coding agent to Bedrock models meant configuring a generic provider of type "openai" or "openai_responses" and supplying a regional base_url plus a Bedrock API key, a credential AWS customers had to obtain and protect. The provider resolves credentials through the standard AWS CLI chain, including named profiles and SSO, then uses @aws/bedrock-token-generator to mint a short-lived bearer token that it renews as needed. It builds the regional bedrock-runtime endpoint from AWS_REGION or AWS_DEFAULT_REGION and maps the model alias to a Bedrock model or inference profile ID, such as the global profile global.moonshotai.kimi-k3.1. The ephemeral keys are valid for up to 12 hours or the AWS session length, whichever is shorter, and an explicit key passed through api_key or api_key_env still takes precedence. AWS recommends short-term credentials over long-term ones, and the post notes the change does not remove the user's responsibility to protect AWS credentials and scope permissions.

## Evidence

Verbatim from https://aws.amazon.com/blogs/machine-learning/use-kimi-code-cli-with-models-on-amazon-bedrock/:

> Kimi Code CLI is an open source coding agent from Moonshot AI, the creator of the Kimi series of open-weight foundation models. Previously, using Kimi Code with models on Amazon Bedrock meant configuring a generic connection “provider” with an Amazon Bedrock API key. For many AWS customers, this meant introducing an extra credential to obtain and protect.
> 
> With v2.7.0, Moonshot AI adds a native bedrock provider to the CLI. You can now configure the agent to use your standard AWS credential chain, including named profiles and single sign-on (SSO), instead of creating and managing a separate API key.
> 
> In this post, we show you how to connect Kimi Code CLI to models on Amazon Bedrock using your existing AWS credentials. We use Kimi K3.1 Pro Highspeed as an example, which supports streaming, configurable reasoning, image input, and client-side tool calling.
> 
> What’s new
> 
> Amazon Bedrock provides pay-per-token inference for a range of open and proprietary models from leading providers, available through standard APIs . Processing stays within the AWS data boundary, as detailed in the Data protection section of the User Guide.

---

Record: https://forck.live/items/39013-use-kimi-code-cli-with-models-on-amazon-bedrock
Catalogue: https://forck.live/llms.txt
Current issue: https://forck.live/feed.md
