A native path from Kimi Code to Bedrock

AWS has published a guide to the native Amazon Bedrock provider added in Kimi Code CLI 2.7.0. Kimi Code is Moonshot AI’s open-source coding agent. Earlier configurations treated Bedrock as a generic OpenAI-compatible endpoint and required a separate Bedrock API key. The new provider can instead resolve the standard AWS credential chain, including named profiles and single sign-on-backed sessions.

Why the authentication change matters

Separate long-lived credentials create extra work for developers and security teams. The native provider uses existing AWS identities and generates a short-lived bearer token through the Bedrock token generator, renewing it when required. AWS says the ephemeral key is valid for up to 12 hours or the remaining AWS session length, whichever is shorter. Explicitly configured API keys still take precedence when a team chooses to use them.

How requests reach the selected model

The provider resolves an AWS Region, constructs the appropriate Bedrock Runtime endpoint and maps a local Kimi model alias to a Bedrock model or inference profile. AWS demonstrates the flow with Kimi K3.1 Pro Highspeed through the global inference profile. The CLI then streams responses and can use client-side tool calling, provided authentication, authorisation, network connectivity and model access all succeed.

Capabilities must be declared carefully

Kimi Code does not automatically detect every capability offered by models on Bedrock. The example configuration explicitly enables reasoning modes, image input and tool use, and sets a one-million-token context size for the selected Kimi model. AWS advises developers to consult the relevant Bedrock model card and declare only capabilities supported by both the model and the chosen API protocol.

Profiles and regions remain operational choices

A named AWS profile can keep coding-agent access separate from a developer’s other cloud work. The provider also requires an explicit Region in its configuration or environment. Cross-Region inference profiles can broaden availability and, in some cases, lower price, but organisations with residency constraints should choose geographic profiles and source Regions deliberately rather than defaulting to global routing.

Least privilege still applies

Using the standard credential chain does not remove the need for IAM discipline. AWS’s example grants permissions to obtain a short-term bearer token, inspect the chosen inference profile and invoke the specific Kimi resources. Production teams should use a dedicated role where practical, limit access to required models and profiles, and validate any additional permissions needed by alternative protocols or private endpoints.

Connectivity indicators are not enough

AWS warns that a provider interface can appear connected without proving that credentials, IAM permissions, Region selection, model access or networking are correct. The recommended test is a small non-interactive prompt that exercises the full path and streams a real response. This is a useful operational distinction: configuration discovery and end-to-end inference success are different states and should be monitored separately.

A more natural enterprise deployment option

The update makes Kimi Code easier to fit into organisations already using AWS identity and governance controls. It also reflects a broader shift towards coding agents that can move between model providers without inventing a new secret-management pattern for every tool. Teams still need to review proposed file changes and commands, measure model cost and validate tool behaviour, but the Bedrock provider removes a meaningful setup obstacle.