<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Mahmood Khordoo</title>
    <description>The latest articles on Forem by Mahmood Khordoo (@mahmood_khordoo_20b3f5980).</description>
    <link>https://forem.com/mahmood_khordoo_20b3f5980</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3540368%2F48a4f9eb-15b3-4e0a-ab56-de2b96a8e971.png</url>
      <title>Forem: Mahmood Khordoo</title>
      <link>https://forem.com/mahmood_khordoo_20b3f5980</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/mahmood_khordoo_20b3f5980"/>
    <language>en</language>
    <item>
      <title>Configure Claude Code with AWS Bedrock in 30 Seconds (Python)</title>
      <dc:creator>Mahmood Khordoo</dc:creator>
      <pubDate>Tue, 30 Sep 2025 21:12:15 +0000</pubDate>
      <link>https://forem.com/mahmood_khordoo_20b3f5980/clauth-an-open-source-cli-to-simplify-aws-bedrock-setup-for-claude-code-users-k8k</link>
      <guid>https://forem.com/mahmood_khordoo_20b3f5980/clauth-an-open-source-cli-to-simplify-aws-bedrock-setup-for-claude-code-users-k8k</guid>
      <description>&lt;h3&gt;
  
  
  The Problem: AWS Configuration is tedious
&lt;/h3&gt;

&lt;p&gt;If you’ve tried using the new &lt;strong&gt;Claude Code extension&lt;/strong&gt; with AWS Bedrock, you’ve probably hit the same wall I did.&lt;/p&gt;

&lt;p&gt;The extension is amazing, but the setup? It’s a friction-heavy process. You have to:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Log into the AWS Console.&lt;/li&gt;
&lt;li&gt;Navigate IAM roles and permissions.&lt;/li&gt;
&lt;li&gt;Deal with &lt;code&gt;config&lt;/code&gt; and &lt;code&gt;credentials&lt;/code&gt; files manually.&lt;/li&gt;
&lt;li&gt;Debug vague "Access Denied" errors when it doesn't work.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I just wanted to code with Claude, not spend 20 minutes acting as a SysAdmin.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Solution: Automating the boring stuff
&lt;/h3&gt;

&lt;p&gt;I realized this process could be scripted. So, I built &lt;strong&gt;&lt;code&gt;clauth&lt;/code&gt;&lt;/strong&gt;, a lightweight, open-source Python CLI that automates the handshake between your local environment and AWS Bedrock.&lt;/p&gt;

&lt;p&gt;It turns a 15-minute manual setup into a single command.&lt;/p&gt;

&lt;h3&gt;
  
  
  How to use it
&lt;/h3&gt;

&lt;p&gt;You can install it directly from PyPI.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Install&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;clauth
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 2: Run the configuration&lt;/strong&gt;&lt;br&gt;
Run the command in your terminal. It will guide you through the authentication process automatically.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Make sure to run this in your terminal&lt;/span&gt;
clauth
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  What it does under the hood
&lt;/h3&gt;

&lt;p&gt;For the curious developers, here is what the library handles for you:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Profile Management:&lt;/strong&gt; Automatically updates your &lt;code&gt;~/.aws/credentials&lt;/code&gt; without breaking existing profiles.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SSO Integration:&lt;/strong&gt; Handles the browser-based login flow if you are using AWS SSO.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bedrock Handshake:&lt;/strong&gt; Verifies that your session actually has access to the Bedrock models before you try to use them in your IDE.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Why Open Source?
&lt;/h3&gt;

&lt;p&gt;I built this to scratch my own itch, but I packaged it up because I know how frustrating AWS IAM can be for developers who just want to use GenAI tools.&lt;/p&gt;

&lt;p&gt;The project is fully open source. If you have feature requests or run into edge cases, feel free to open an issue or PR!&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;PyPI:&lt;/strong&gt; &lt;a href="https://pypi.org/project/clauth/" rel="noopener noreferrer"&gt;https://pypi.org/project/clauth/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub:&lt;/strong&gt; [INSERT YOUR GITHUB LINK HERE]&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Happy coding! 🚀&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Built by an Engineer who got tired of manually setting environment variables 😉&lt;/em&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>aws</category>
      <category>cli</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
