---
type: "post"
id: "use-kimi-code-cli-with-models-on-amazon-90c96f"
slug: "use-kimi-code-cli-with-models-on-amazon-90c96f"
title: "Use Kimi Code CLI with models on Amazon Bedrock"
description: "Moonshot AI’s Kimi Code CLI v2.7.0 adds a native Amazon Bedrock provider that can use standard AWS credentials, including named profiles and SSO, instead of requiring a separately managed Bedrock API key."
retrieval_nugget: "Moonshot AI’s Kimi Code CLI v2.7.0 adds a native Amazon Bedrock provider that can use standard AWS credentials, including named profiles and SSO, instead of requiring a separately managed Bedrock API key."
published_at: "2026-11-20"
updated_at: "2026-11-20"
record_date: "2026-11-20"
date_kind: "published_at"
topics: ["models"]
entities: ["Moonshot AI","Kimi Code CLI","Amazon Bedrock","Kimi K3.1 Pro Highspeed","AWS IAM Identity Center"]
related_patterns: ["harness-architecture-outlives-model-choice"]
novelty_label: "new_fact"
what_changed: null
prior_refs: []
source_url: "https://aws.amazon.com/blogs/machine-learning/use-kimi-code-cli-with-models-on-amazon-bedrock"
source_urls: ["https://aws.amazon.com/blogs/machine-learning/use-kimi-code-cli-with-models-on-amazon-bedrock"]
schema_version: "newruntime-agent-readable-v0.2"
stable_id: "post:use-kimi-code-cli-with-models-on-amazon-90c96f"
status: "published"
visuals: []
editor: {"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]}
routes: {"html":"https://newruntime.com/posts/use-kimi-code-cli-with-models-on-amazon-90c96f/","markdown":"https://newruntime.com/posts/use-kimi-code-cli-with-models-on-amazon-90c96f.md","json":"https://newruntime.com/posts/use-kimi-code-cli-with-models-on-amazon-90c96f.json"}
markdown_url: "https://newruntime.com/posts/use-kimi-code-cli-with-models-on-amazon-90c96f.md"
---

# Use Kimi Code CLI with models on Amazon Bedrock

## Retrieval answer

Moonshot AI’s Kimi Code CLI v2.7.0 adds a native Amazon Bedrock provider that can use standard AWS credentials, including named profiles and SSO, instead of requiring a separately managed Bedrock API key.

## Summary

Moonshot AI’s Kimi Code CLI v2.7.0 adds a native Amazon Bedrock provider that can use standard AWS credentials, including named profiles and SSO, instead of requiring a separately managed Bedrock API key. For teams already using the CLI and Bedrock, the change simplifies authentication setup while leaving IAM permissions, model access, regional configuration and request validation firmly in the operator’s hands.

## What happened

AWS’s announcement describes a native `bedrock` provider in Kimi Code CLI v2.7.0. Earlier versions could connect to Bedrock through generic providers configured for OpenAI-compatible Chat Completions or Responses APIs. Those setups required a regional base URL and a separate Bedrock API key. With the native provider, the CLI can resolve temporary credentials through the standard AWS credential chain, including a default profile, a named profile or one backed by AWS IAM Identity Center single sign-on.

The provider uses `@aws/bedrock-token-generator` to create a short-term Bedrock API key from AWS credentials and renew it as needed. The generated key is valid for up to 12 hours or for the duration of the AWS session, whichever is shorter. An explicitly configured key still takes precedence. The provider infers an API format and regional endpoint from the model ID, while allowing teams to override the protocol or base URL for cases such as a VPC endpoint. AWS says inference remains within the AWS data boundary; requests still depend on successful authentication, authorization, model access and network connectivity.

AWS walks through Kimi K3.1 Pro Highspeed using the global inference profile `global.moonshotai.kimi-k3.1`. Its sample configuration sets `AWS_REGION`, optionally selects `AWS_PROFILE`, and declares a one-million-token context window plus reasoning, image-input and tool-use capabilities. The post says this model supports streaming, configurable reasoning, image input and client-side tool calling. Capability declarations are client-side settings: AWS advises checking the model card and validating tool and image workflows rather than assuming a label proves support at every endpoint.

The setup requires Kimi Code CLI v2.7.0 or later, AWS CLI access, an account with access to the target model and inference profile, and an IAM identity permitted to invoke them. AWS recommends short-term credentials, least-privilege policies and considering a dedicated role for the CLI. It also warns that a desktop or web interface showing a provider as “connected” does not validate the full request path. The suggested check is a small non-interactive prompt, followed by reviewing the response or diagnosing the actual error. Bedrock inference is pay-per-token; AWS directs users to current Bedrock pricing rather than specifying a fixed price in this walkthrough.

## What the archive adds

New Runtime’s earlier coverage noted that Kimi K3.1 Pro became available on Bedrock in November 2026 ([Introducing Kimi K3.1 Pro on Amazon Bedrock](https://newruntime.com/posts/introducing-kimi-k3-1-pro-on-amazon-bedrock-4f1eb4/)). This is a new integration fact on that known access story: the model offering is not the change here; Kimi Code CLI now has a native authentication path for using Bedrock models.

## Trend signal

This supports the broader movement toward a durable harness around agent workflows: authentication, model routing and runtime configuration can matter as much as model choice. The connection is limited, since this announcement is primarily a provider integration, not evidence that harness architecture has displaced model choice as the product boundary. See [Harness architecture outlives model choice](https://newruntime.com/patterns/harness-architecture-outlives-model-choice/).

## Why now

AWS presents the provider as a way to use existing AWS authentication instead of obtaining and managing another API key. The timing is relevant to teams already adopting Kimi K3.1 Pro on Bedrock: the model access and CLI integration now have a documented route that fits established AWS profiles and SSO workflows.

## Why it matters

A separate API key creates another credential to provision, protect, rotate or accidentally place in a local configuration. Using the AWS credential chain can reduce that operational burden and lets teams apply AWS identity and permission practices to a coding-agent workflow. That is a meaningful improvement for organizations already running Kimi Code and Bedrock, but it does not automatically make the setup safer: permissions must still be scoped, sessions protected and model access enabled.

The announcement is also a reminder that agent connectivity has several independently failing layers. A provider indicator is not an end-to-end test; a real request checks authentication, authorization, region, model access and network reachability together. Teams can use the described small prompt as a smoke test before opening an interactive coding session, then review proposed file changes and shell commands before approval. The practical benefit is less credential friction, not a guarantee of correct or safe coding-agent behavior.

## Limits and uncertainty

The announcement does not quantify how many users will benefit or how much setup time the provider saves. It describes one example model and profile; region and inference-profile support must be checked for each account and target. The published configuration’s capability declarations should not be treated as independent validation of model behavior. AWS also emphasizes that the new path does not remove the operator’s responsibility for credential protection, IAM scope, network access or reviewing agent actions. Pricing remains usage-based and should be checked against current Bedrock rates before deployment.

## Skill to build now

If your team already uses Kimi Code with Bedrock, test the new provider first in a non-production profile. Configure a named AWS profile and explicit source region, grant only the model and inference-profile permissions required, then run a small non-interactive prompt before starting an interactive session. Confirm that the request succeeds; do not rely on a “connected” status. Keep the configuration’s model capability flags aligned with the Bedrock model card, and review the agent’s proposed file changes and shell commands before approving them.

## Reader takeaway

Kimi Code CLI v2.7.0 makes Bedrock authentication fit more naturally into AWS’s existing credential workflow, but it is an integration improvement, not a new coding capability. The useful operational lesson is to test the whole request path with least-privilege identity and an actual prompt, then keep human review in the loop.

Editor: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- topic hub: [Models](https://newruntime.com/topics/models.md): Explore the models topic hub.
- collection: [Field Notes](https://newruntime.com/posts.json): Open the latest editorial analysis.
- collection: [Sources](https://newruntime.com/sources/): See the original sources this archive cites.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
