> ## Content Index
> Fetch the complete content index at: https://www.stirup.si/llms.txt
> Use this file to discover other available public pages before exploring further.

# Kimi Code CLI Integration with Amazon Bedrock Using AWS Credentials
- URL: https://www.stirup.si/kimi-code-cli-integration-with-amazon-bedrock-using-aws-credentials-5a5c9791/
- Published: 2026-11-20T01:17:31.000Z
- Updated: 2026-11-20T01:17:31.000Z
- Description: Connecting Kimi Code CLI to Amazon Bedrock now uses AWS credentials instead of API keys, requiring configuration via a named AWS profile in the config.toml file.
- Author: Satish Das
- Tags: Cloud, News, Stirup Research

## Connecting Kimi Code CLI to Amazon Bedrock

Connecting Kimi Code CLI to models on Amazon Bedrock involves configuring the CLI to use existing AWS credentials rather than manually entering an Amazon Bedrock API key. Previously, this required setting up a generic connection provider with an API key, but newer versions of the Kimi Code CLI support direct integration using AWS credentials. In older versions, the connection was made through a provider with type = "openai" or type = "openai\_responses". However, this is no longer necessary. Users can now configure the CLI using a named AWS profile by replacing YOUR\_PROFILE\_NAME and uncommenting the AWS\_PROFILE line in the config.toml file. The model alias bedrock-kimi-k3-1 is a local name used by Kimi Code CLI to reference the model on Amazon Bedrock.

## Model Capabilities and Configuration

When using Kimi Code CLI with models on Amazon Bedrock, it is essential to explicitly declare model capabilities. According to [AWS Machine Learning](https://aws.amazon.com/blogs/machine-learning/use-kimi-code-cli-with-models-on-amazon-bedrock/?ref=stirup.si), Kimi Code does not auto-detect the capabilities of most models on Amazon Bedrock, including Kimi models. Developers should refer to [AWS Machine Learning](https://aws.amazon.com/blogs/machine-learning/use-kimi-code-cli-with-models-on-amazon-bedrock/?ref=stirup.si) and check the Amazon Bedrock model card for each target model to explicitly declare its capabilities. This ensures that Kimi Code can effectively utilize the model's features. As stated in [AWS Machine Learning](https://aws.amazon.com/blogs/machine-learning/use-kimi-code-cli-with-models-on-amazon-bedrock/?ref=stirup.si), only capabilities supported by the target model and Amazon Bedrock API endpoint should be included. Additionally, [AWS Machine Learning](https://aws.amazon.com/blogs/machine-learning/use-kimi-code-cli-with-models-on-amazon-bedrock/?ref=stirup.si) emphasizes the importance of keeping Region settings consistent and preferring cross-Region inference where possible. The bedrock provider requires an explicit AWS\_REGION or AWS\_DEFAULT\_REGION in Kimi Code’s config.toml or the shell environment.

## IAM Permissions and Cleanup

When using the Kimi Code CLI with models on Amazon Bedrock, proper IAM permissions are essential. An example IAM policy, as noted in [AWS Machine Learning](https://aws.amazon.com/blogs/machine-learning/use-kimi-code-cli-with-models-on-amazon-bedrock/?ref=stirup.si), grants the necessary permissions for the Kimi K3.1 Pro Highspeed model and global inference profile. The BedrockInvokeKimiK31DefaultProject statement, mentioned in [AWS Machine Learning](https://aws.amazon.com/blogs/machine-learning/use-kimi-code-cli-with-models-on-amazon-bedrock/?ref=stirup.si), is specifically required when using the openai\_responses protocol, but not needed for the default openai (Chat Completions) protocol. After completing your testing, it is important to clean up any new AWS IAM identities or permissions created for this purpose, as outlined in [AWS Machine Learning](https://aws.amazon.com/blogs/machine-learning/use-kimi-code-cli-with-models-on-amazon-bedrock/?ref=stirup.si). This ensures security and compliance with AWS best practices. As highlighted in [AWS Machine Learning](https://aws.amazon.com/blogs/machine-learning/use-kimi-code-cli-with-models-on-amazon-bedrock/?ref=stirup.si), the Kimi Code CLI v2.7.0 connects to Kimi K3.1 Pro Highspeed on Amazon Bedrock through the standard AWS credential chain, as provided by Moonshot AI’s native bedrock provider. Amazon Bedrock, as described in [AWS Machine Learning](https://aws.amazon.com/blogs/machine-learning/use-kimi-code-cli-with-models-on-amazon-bedrock/?ref=stirup.si), offers access to both open and proprietary AI models from leading providers through standard APIs.

## Sources and reporting notes

- [AWS Machine Learning](https://aws.amazon.com/blogs/machine-learning/use-kimi-code-cli-with-models-on-amazon-bedrock/?ref=stirup.si)

Based on published source material. No independent hands-on testing is claimed.