<?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>DEV Community: Shadrack Inusah</title>
    <description>The latest articles on DEV Community by Shadrack Inusah (@kojo_shaddy).</description>
    <link>https://dev.to/kojo_shaddy</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3907537%2F598114fa-cd47-4457-98c0-c739bcfc678e.jpg</url>
      <title>DEV Community: Shadrack Inusah</title>
      <link>https://dev.to/kojo_shaddy</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kojo_shaddy"/>
    <language>en</language>
    <item>
      <title>Building Your First AI Agent Locally: A Practical Guide to Google ADK with Antigravity IDE</title>
      <dc:creator>Shadrack Inusah</dc:creator>
      <pubDate>Thu, 30 Jul 2026 16:15:39 +0000</pubDate>
      <link>https://dev.to/kojo_shaddy/building-your-first-ai-agent-locally-a-practical-guide-to-google-adk-with-antigravity-ide-4h39</link>
      <guid>https://dev.to/kojo_shaddy/building-your-first-ai-agent-locally-a-practical-guide-to-google-adk-with-antigravity-ide-4h39</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Building AI agents has traditionally required cloud infrastructure and credits, which can be a barrier for students and developers just getting started. But what if you could build, test, and run intelligent AI agents entirely on your local machine, for free?&lt;/p&gt;

&lt;p&gt;In this guide, I'll walk you through creating your first AI agent using the Google Agent Development Kit (ADK) and Antigravity IDE, no cloud credits required. Plus, once you're ready, you can deploy to Google Cloud with minimal changes.&lt;/p&gt;

&lt;p&gt;Whether you're exploring AI development for the first time, or building a proof-of-concept, this hands-on tutorial will get you up and running in under 30 minutes.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is the Google Agent Development Kit (ADK)?
&lt;/h2&gt;

&lt;p&gt;The Google Agent Development Kit is an open-source, Python-first framework for building reliable AI agents at scale. Think of it as a structured way to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Define agent instructions and behavior&lt;/li&gt;
&lt;li&gt;Attach tools and integrations&lt;/li&gt;
&lt;li&gt;Switch between different LLM backends (Gemini, Vertex AI)&lt;/li&gt;
&lt;li&gt;Test and debug locally before deploying&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Key Advantages&lt;/strong&gt;&lt;br&gt;
✅ No vendor lock-in – Code-first, framework-agnostic design&lt;br&gt;
✅ Local-first development – Test everything on your machine&lt;br&gt;
✅ Built-in tooling – CLI and Web UI included&lt;br&gt;
✅ Easy deployment – Ship to Cloud Run, App Engine, or Kubernetes when ready&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prerequisites&lt;/strong&gt;&lt;br&gt;
Before we start, make sure you have:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Python 3.10+ installed on your system&lt;/li&gt;
&lt;li&gt;A text editor or IDE (we'll use Antigravity IDE)&lt;/li&gt;
&lt;li&gt;A free Gemini API key (available at &lt;a href="https://aistudio.google.com/apikey" rel="noopener noreferrer"&gt;Google AI Studio&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;About 30 minutes of your time ⏱️&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  Step 1: Set Up Your Workspace
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Create a Project Directory&lt;/strong&gt;&lt;br&gt;
Create a new folder for your agent project:&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="nb"&gt;mkdir &lt;/span&gt;Agent
&lt;span class="nb"&gt;cd &lt;/span&gt;Agent
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Initialize a Virtual Environment&lt;/strong&gt;&lt;br&gt;
A virtual environment keeps your project dependencies isolated:&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;# Create virtual environment&lt;/span&gt;
python &lt;span class="nt"&gt;-m&lt;/span&gt; venv .venv

&lt;span class="c"&gt;# Activate it&lt;/span&gt;
&lt;span class="c"&gt;# On macOS/Linux:&lt;/span&gt;
&lt;span class="nb"&gt;source&lt;/span&gt; .venv/bin/activate

&lt;span class="c"&gt;# On Windows (Command Prompt):&lt;/span&gt;
.venv&lt;span class="se"&gt;\S&lt;/span&gt;cripts&lt;span class="se"&gt;\a&lt;/span&gt;ctivate.bat

&lt;span class="c"&gt;# On Windows (PowerShell):&lt;/span&gt;
.&lt;span class="se"&gt;\.&lt;/span&gt;venv&lt;span class="se"&gt;\S&lt;/span&gt;cripts&lt;span class="se"&gt;\A&lt;/span&gt;ctivate.ps1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Pro Tip&lt;/strong&gt;: Always use a virtual environment. It prevents package conflicts and makes your setup reproducible.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Step 2: Install the Google ADK
&lt;/h3&gt;

&lt;p&gt;This is the critical part. Install the correct package:&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;google-adk

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;⚠️ Important&lt;/strong&gt;: Do NOT run pip install adk. This installs an unrelated RPC library that will conflict with ADK commands.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Verify the installation:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;adk &lt;span class="nt"&gt;--version&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 3: Scaffold Your First Agent
&lt;/h3&gt;

&lt;p&gt;The ADK CLI can generate boilerplate files for you:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;adk create my_agent
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The CLI might prompt you:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Choose a model → Select 1 for &lt;code&gt;gemini-3.5-flash&lt;/code&gt; (free, fast, and capable)&lt;/li&gt;
&lt;li&gt;Choose a backend → Select 1 for &lt;code&gt;Google AI&lt;/code&gt; (no infrastructure setup needed)&lt;/li&gt;
&lt;li&gt;Enter your Google API Key → Paste your Gemini API key (or a placeholder for now)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;After running this command, you'll see:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;my_agent/
├── .env              # API credentials (ignored by Git)
├── .gitignore        # Prevents committing secrets
├── __init__.py       # Package marker
└── agent.py          # Your agent definition
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 4: Configure Your API Key
&lt;/h3&gt;

&lt;p&gt;Open &lt;code&gt;my_agent/.env&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight properties"&gt;&lt;code&gt;&lt;span class="py"&gt;GOOGLE_GENAI_USE_ENTERPRISE&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;0&lt;/span&gt;
&lt;span class="py"&gt;GOOGLE_API_KEY&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;YOUR_GEMINI_API_KEY&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace &lt;code&gt;YOUR_GEMINI_API_KEY&lt;/code&gt; with your actual key from &lt;a href="https://aistudio.google.com/apikey" rel="noopener noreferrer"&gt;Google AI Studio&lt;/a&gt;.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Security Note&lt;/strong&gt;: The &lt;code&gt;.gitignore&lt;/code&gt; prevents this file from being committed to version control. Never commit API keys!&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Step 5: Explore Your Agent Code
&lt;/h3&gt;

&lt;p&gt;Open &lt;code&gt;my_agent/agent.py&lt;/code&gt;. You'll see something like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;google.adk.agents.llm_agent&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;Agent&lt;/span&gt;

&lt;span class="n"&gt;root_agent&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Agent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;gemini-3.5-flash&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;root_agent&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;description&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;A helpful assistant for user questions.&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;instruction&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;Answer user questions to the best of your knowledge&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is your agent definition. It's simple, but powerful:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;model&lt;/strong&gt;: The LLM powering your agent&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;name&lt;/strong&gt;: A unique identifier for the agent&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;description&lt;/strong&gt;: What your agent does&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;instruction&lt;/strong&gt;: The system prompt that guides behavior&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Step 6: Run Your Agent (Two Options)
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Option A: Terminal CLI (Interactive Chat)&lt;/strong&gt;&lt;br&gt;
For a quick test in your terminal:&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;# On Windows, set UTF-8 encoding to avoid emoji crashes:&lt;/span&gt;
&lt;span class="nb"&gt;export &lt;/span&gt;&lt;span class="nv"&gt;PYTHONIOENCODING&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"utf-8"&lt;/span&gt;

adk run my_agent
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You'll get an interactive prompt where you can type messages and get responses from your agent in real-time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Option B: Web UI (Visual Chat Interface)&lt;/strong&gt;&lt;br&gt;
For a more polished experience:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;adk web my_agent
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Open your browser to &lt;code&gt;http://127.0.0.1:8000&lt;/code&gt; and you'll see a clean chat interface. This is great for demos and user testing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Real-World Use Cases
&lt;/h2&gt;

&lt;p&gt;Here are some ideas you can build with ADK:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;📚 Study Assistant – Explains concepts, generates quizzes&lt;/li&gt;
&lt;li&gt;🛠️ Code Helper – Debugs code, suggests optimizations&lt;/li&gt;
&lt;li&gt;📰 News Aggregator – Summarizes news from multiple sources&lt;/li&gt;
&lt;li&gt;🤖 Customer Support Bot – Handles FAQs, routes to humans&lt;/li&gt;
&lt;li&gt;📊 Data Analyst – Processes data and generates insights&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Get Started Now
&lt;/h2&gt;

&lt;p&gt;Ready to build? Clone or download the starter template:&lt;/p&gt;

&lt;p&gt;📦 Repository: &lt;a href="https://github.com/KojoShaddy/my_agent" rel="noopener noreferrer"&gt;KojoShaddy/my_agent&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The repo includes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Complete setup guide&lt;/li&gt;
&lt;li&gt;Step-by-step codelab&lt;/li&gt;
&lt;li&gt;Example agent code&lt;/li&gt;
&lt;li&gt;Deployment documentation&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Building AI agents is no longer gatekept by cloud infrastructure. With Google ADK and Antigravity IDE, you have everything you need to start building intelligent agents on your local machine, today.&lt;/p&gt;

&lt;p&gt;Whether this is your first AI project or you're exploring advanced agent architectures, this foundation will serve you well. Start local, iterate fast, and scale to the cloud when you're ready.&lt;/p&gt;

&lt;h2&gt;
  
  
  Resources &amp;amp; Next Steps
&lt;/h2&gt;

&lt;p&gt;📖 &lt;a href="https://github.com/google/adk-python" rel="noopener noreferrer"&gt;Official Google ADK Docs&lt;/a&gt;&lt;br&gt;
🔑 &lt;a href="https://aistudio.google.com/apikey" rel="noopener noreferrer"&gt;Get Your Free Gemini API Key&lt;/a&gt;&lt;br&gt;
💻 &lt;a href="https://antigravity.google/product/antigravity-ide" rel="noopener noreferrer"&gt;Download Antigravity IDE&lt;/a&gt;&lt;br&gt;
🚀 &lt;a href="https://cloud.google.com/run/docs" rel="noopener noreferrer"&gt;Google Cloud Deployment Guide&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>antigravity</category>
      <category>adk</category>
    </item>
  </channel>
</rss>
