<?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: A. S. Md. Ferdousul Haque</title>
    <description>The latest articles on DEV Community by A. S. Md. Ferdousul Haque (@ferdousulhaque).</description>
    <link>https://dev.to/ferdousulhaque</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%2F730961%2F55226b6e-2854-4529-b29f-6236e32ca25d.png</url>
      <title>DEV Community: A. S. Md. Ferdousul Haque</title>
      <link>https://dev.to/ferdousulhaque</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ferdousulhaque"/>
    <language>en</language>
    <item>
      <title>Connect the Dots: Building a AWS Bedrock-Powered AI Agent in Self-Hosted n8n</title>
      <dc:creator>A. S. Md. Ferdousul Haque</dc:creator>
      <pubDate>Tue, 17 Nov 2026 18:21:07 +0000</pubDate>
      <link>https://dev.to/aws-builders/connect-the-dots-building-a-aws-bedrock-powered-ai-agent-in-self-hosted-n8n-37k8</link>
      <guid>https://dev.to/aws-builders/connect-the-dots-building-a-aws-bedrock-powered-ai-agent-in-self-hosted-n8n-37k8</guid>
      <description>&lt;h2&gt;
  
  
  n8n
&lt;/h2&gt;

&lt;p&gt;(short for "nodemation"). It is a node-based, open-source workflow and AI agent automation platform. It is a LCNC (Low-Code-No-Code) Platform, that lets you connect different apps, APIs, and AI models using a visual drag-and-drop editor.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Easy Configuration &amp;amp; Reusability:&lt;/strong&gt; You can easily set up credentials once, import or export entire workflows as simple JSON files, and deploy the platform in minutes using a single Docker command.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cost-Effective Self-Hosting:&lt;/strong&gt; You can host n8n on your own server for free, avoiding the steep per-task pricing limits of tools like Zapier or Make.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Built-In AI Agent Capabilities:&lt;/strong&gt; It provides native LangChain and AI nodes, making it easy to build autonomous AI agents that can use tools, remember context, and process data.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Full Data Privacy:&lt;/strong&gt; Running n8n on your own infrastructure ensures sensitive customer data and API keys never leave your private environment.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Native MCP (Model Context Protocol) Support:&lt;/strong&gt; n8n can act as both an MCP client and server, letting you easily connect external AI tools to your workflows or expose your n8n automations as tools for AI assistants like Claude.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Code Meets No-Code:&lt;/strong&gt; You can build quickly using a visual drag-and-drop canvas, while still having the freedom to write custom JavaScript or Python whenever you need complex logic.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Universal API Connectivity:&lt;/strong&gt; Beyond its hundreds of pre-built app integrations, the flexible HTTP Request node lets you connect to virtually any service with a REST or GraphQL API.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  AWS Bedrock
&lt;/h2&gt;

&lt;p&gt;Amazon Bedrock is a fully managed, serverless platform on Amazon Web Services (AWS) that allows you to build and scale generative AI applications using foundation models (FMs) from providers like Anthropic, Meta, Mistral, OpenAI and Amazon.&lt;/p&gt;

&lt;h3&gt;
  
  
  AWS Bedrock Inference Profile
&lt;/h3&gt;

&lt;p&gt;Amazon Bedrock inference profiles are configuration and routing wrappers placed in front of foundation models to manage multi-region traffic (traffic spikes), track usage, and attribute costs.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2vbxiro9zn5b20zrs9zi.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2vbxiro9zn5b20zrs9zi.webp" alt="AWS Bedrock Inference Profiles" width="800" height="551"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For more details checkout&lt;br&gt;
&lt;a href="https://dev.to/aws-builders/create-and-manage-inference-profiles-on-amazon-bedrock-3ba6"&gt;Create and manage inference profiles on Amazon Bedrock&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Let's Connect the DOTS
&lt;/h2&gt;

&lt;p&gt;Using docker/orbstack you can spin-up n8n self-hosted application in your laptop in minutes. You can use the following docker composer yaml, create a &lt;code&gt;.env&lt;/code&gt; file to keep the environment values.&lt;/p&gt;

&lt;p&gt;Example &lt;code&gt;.env.example&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Generate with: openssl rand -hex 32
# WARNING: set this once and never rotate/lose it — it decrypts all stored credentials.
N8N_ENCRYPTION_KEY=

# Generate with: openssl rand -base64 32
N8N_USER_MANAGEMENT_JWT_SECRET=

# Postgres credentials (not exposed to the host, only reachable from the n8n container)
POSTGRES_USER=n8n
POSTGRES_PASSWORD=
POSTGRES_DB=n8n

# n8n is bound to 127.0.0.1:5678 by default (see docker-compose.yml).
# If you put a reverse proxy with TLS in front of it later, update these three
# and switch N8N_PROTOCOL/N8N_SECURE_COOKIE to https/true.
N8N_HOST=localhost
N8N_PROTOCOL=http
N8N_SECURE_COOKIE=false
WEBHOOK_URL=http://localhost:5678/

TZ=Asia/Dhaka
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Example &lt;code&gt;docker-compose.yml&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;services&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;postgres&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;image&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;postgres:16-alpine&lt;/span&gt;
    &lt;span class="na"&gt;restart&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;unless-stopped&lt;/span&gt;
    &lt;span class="c1"&gt;# Note: the official postgres entrypoint needs root at first boot to chown the
&lt;/span&gt;    &lt;span class="c1"&gt;# data dir and drop privileges to the `postgres` user, so we don't cap_drop/lock
&lt;/span&gt;    &lt;span class="c1"&gt;# this one down the way n8n (fixed non-root user) is.
&lt;/span&gt;    &lt;span class="na"&gt;environment&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;POSTGRES_USER&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${POSTGRES_USER}&lt;/span&gt;
      &lt;span class="na"&gt;POSTGRES_PASSWORD&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${POSTGRES_PASSWORD}&lt;/span&gt;
      &lt;span class="na"&gt;POSTGRES_DB&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${POSTGRES_DB}&lt;/span&gt;
      &lt;span class="na"&gt;POSTGRES_INITDB_ARGS&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"--auth-host=scram-sha-256 --auth-local=scram-sha-256"&lt;/span&gt;
    &lt;span class="na"&gt;volumes&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;postgres_data:/var/lib/postgresql/data&lt;/span&gt;
    &lt;span class="c1"&gt;# Not published to the host — only reachable from n8n on this compose network
&lt;/span&gt;    &lt;span class="na"&gt;networks&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;n8n_net&lt;/span&gt;
    &lt;span class="na"&gt;healthcheck&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;test&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"CMD-SHELL"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
      &lt;span class="na"&gt;interval&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;10s&lt;/span&gt;
      &lt;span class="na"&gt;timeout&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;5s&lt;/span&gt;
      &lt;span class="na"&gt;retries&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;

  &lt;span class="na"&gt;n8n&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;image&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;n8nio/n8n:1.123.64&lt;/span&gt;   &lt;span class="c1"&gt;# pin a specific version; check https://hub.docker.com/r/n8nio/n8n/tags before upgrading
&lt;/span&gt;    &lt;span class="na"&gt;restart&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;unless-stopped&lt;/span&gt;
    &lt;span class="na"&gt;user&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"1000:1000"&lt;/span&gt;
    &lt;span class="na"&gt;security_opt&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;no-new-privileges:true&lt;/span&gt;
    &lt;span class="na"&gt;cap_drop&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;ALL&lt;/span&gt;
    &lt;span class="na"&gt;depends_on&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;postgres&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="na"&gt;condition&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;service_healthy&lt;/span&gt;
    &lt;span class="na"&gt;ports&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s2"&gt;"127.0.0.1:5678:5678"&lt;/span&gt;   &lt;span class="c1"&gt;# bind to localhost only; put behind your own reverse proxy for remote/HTTPS access
&lt;/span&gt;    &lt;span class="na"&gt;environment&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="c1"&gt;# --- Core secrets ---
&lt;/span&gt;      &lt;span class="c1"&gt;# Encrypts all stored credentials at rest. Generate once with: openssl rand -hex 32
&lt;/span&gt;      &lt;span class="c1"&gt;# Never change this after workflows/credentials exist — you will lose access to them.
&lt;/span&gt;      &lt;span class="na"&gt;N8N_ENCRYPTION_KEY&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${N8N_ENCRYPTION_KEY}&lt;/span&gt;
      &lt;span class="c1"&gt;# Signs user-management session/auth JWTs. Generate with: openssl rand -base64 32
&lt;/span&gt;      &lt;span class="na"&gt;N8N_USER_MANAGEMENT_JWT_SECRET&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${N8N_USER_MANAGEMENT_JWT_SECRET}&lt;/span&gt;

      &lt;span class="c1"&gt;# --- Database (Postgres, not the default SQLite) ---
&lt;/span&gt;      &lt;span class="na"&gt;DB_TYPE&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;postgresdb&lt;/span&gt;
      &lt;span class="na"&gt;DB_POSTGRESDB_HOST&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;postgres&lt;/span&gt;
      &lt;span class="na"&gt;DB_POSTGRESDB_PORT&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;5432&lt;/span&gt;
      &lt;span class="na"&gt;DB_POSTGRESDB_DATABASE&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${POSTGRES_DB}&lt;/span&gt;
      &lt;span class="na"&gt;DB_POSTGRESDB_USER&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${POSTGRES_USER}&lt;/span&gt;
      &lt;span class="na"&gt;DB_POSTGRESDB_PASSWORD&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${POSTGRES_PASSWORD}&lt;/span&gt;

      &lt;span class="c1"&gt;# --- Transport ---
&lt;/span&gt;      &lt;span class="c1"&gt;# Flip N8N_PROTOCOL to https and N8N_SECURE_COOKIE to true once you put n8n behind TLS.
&lt;/span&gt;      &lt;span class="na"&gt;N8N_PROTOCOL&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${N8N_PROTOCOL}&lt;/span&gt;
      &lt;span class="na"&gt;N8N_HOST&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${N8N_HOST}&lt;/span&gt;
      &lt;span class="na"&gt;N8N_PORT&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;5678&lt;/span&gt;
      &lt;span class="na"&gt;WEBHOOK_URL&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${WEBHOOK_URL}&lt;/span&gt;
      &lt;span class="na"&gt;N8N_SECURE_COOKIE&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${N8N_SECURE_COOKIE}&lt;/span&gt;

      &lt;span class="c1"&gt;# --- Task isolation (runs Code/Function node execution in a separate sandboxed process) ---
&lt;/span&gt;      &lt;span class="na"&gt;N8N_RUNNERS_ENABLED&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"true"&lt;/span&gt;
      &lt;span class="na"&gt;N8N_RUNNERS_MODE&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;internal&lt;/span&gt;

      &lt;span class="c1"&gt;# --- Hardening: block workflows from reading host env vars / arbitrary files ---
&lt;/span&gt;      &lt;span class="na"&gt;N8N_BLOCK_ENV_ACCESS_IN_NODE&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"true"&lt;/span&gt;
      &lt;span class="na"&gt;N8N_RESTRICT_FILE_ACCESS_TO&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;/home/node/.n8n/files&lt;/span&gt;
      &lt;span class="na"&gt;NODE_FUNCTION_ALLOW_BUILTIN&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;""&lt;/span&gt;
      &lt;span class="na"&gt;NODE_FUNCTION_ALLOW_EXTERNAL&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;""&lt;/span&gt;

      &lt;span class="c1"&gt;# --- Reduce exposure surface / outbound telemetry ---
&lt;/span&gt;      &lt;span class="na"&gt;N8N_DIAGNOSTICS_ENABLED&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"false"&lt;/span&gt;
      &lt;span class="na"&gt;N8N_VERSION_NOTIFICATIONS_ENABLED&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"false"&lt;/span&gt;
      &lt;span class="na"&gt;N8N_TEMPLATES_ENABLED&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"false"&lt;/span&gt;
      &lt;span class="na"&gt;N8N_PERSONALIZATION_ENABLED&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"false"&lt;/span&gt;
      &lt;span class="na"&gt;N8N_HIRING_BANNER_ENABLED&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"false"&lt;/span&gt;

      &lt;span class="c1"&gt;# --- Execution data hygiene (don't retain credential-laden execution logs forever) ---
&lt;/span&gt;      &lt;span class="na"&gt;EXECUTIONS_DATA_PRUNE&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"true"&lt;/span&gt;
      &lt;span class="na"&gt;EXECUTIONS_DATA_MAX_AGE&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;336&lt;/span&gt;   &lt;span class="c1"&gt;# hours = 14 days
&lt;/span&gt;      &lt;span class="na"&gt;EXECUTIONS_DATA_SAVE_ON_ERROR&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;all&lt;/span&gt;
      &lt;span class="na"&gt;EXECUTIONS_DATA_SAVE_ON_SUCCESS&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;none&lt;/span&gt;
      &lt;span class="na"&gt;EXECUTIONS_DATA_SAVE_MANUAL_EXECUTIONS&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"true"&lt;/span&gt;

      &lt;span class="na"&gt;GENERIC_TIMEZONE&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${TZ}&lt;/span&gt;
      &lt;span class="na"&gt;N8N_LOG_LEVEL&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;info&lt;/span&gt;
    &lt;span class="na"&gt;volumes&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;n8n_data:/home/node/.n8n&lt;/span&gt;
    &lt;span class="na"&gt;networks&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;n8n_net&lt;/span&gt;
    &lt;span class="na"&gt;healthcheck&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;test&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"CMD-SHELL"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"wget -qO- http://127.0.0.1:5678/healthz || exit 1"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
      &lt;span class="na"&gt;interval&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;30s&lt;/span&gt;
      &lt;span class="na"&gt;timeout&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;5s&lt;/span&gt;
      &lt;span class="na"&gt;retries&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;

&lt;span class="na"&gt;networks&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;n8n_net&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;

&lt;span class="na"&gt;volumes&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;postgres_data&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;n8n_data&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;

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

&lt;/div&gt;



&lt;h2&gt;
  
  
  Add the building blocks in the workflow
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Step 1: Chat Block
&lt;/h3&gt;

&lt;p&gt;Once n8n starts, login to &lt;a href="http://localhost:5678/" rel="noopener noreferrer"&gt;http://localhost:5678/&lt;/a&gt; and create a workflow. Create a chat block in the workflow, you will get a view similar like below:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi730slpql4hsalz5d6m9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi730slpql4hsalz5d6m9.png" alt="Chat Block" width="799" height="401"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: AI Agent Block
&lt;/h3&gt;

&lt;p&gt;Now add an AI Agent Block, here the block needs the 3 capabilities:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Chat Model&lt;/li&gt;
&lt;li&gt;Memory&lt;/li&gt;
&lt;li&gt;Tools&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7vv147ppbtigxvz3i1fy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7vv147ppbtigxvz3i1fy.png" alt="AI Agent Block" width="800" height="209"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3: Chat Model
&lt;/h3&gt;

&lt;p&gt;Add the AWS Bedrock Chat Model from the components list&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fiwmjdl33p5ni4x8cmhtm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fiwmjdl33p5ni4x8cmhtm.png" alt="Chat Model View" width="800" height="609"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;and edit the &lt;code&gt;Credential to connect with&lt;/code&gt; to the required:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Region&lt;/li&gt;
&lt;li&gt;Access Key Id&lt;/li&gt;
&lt;li&gt;Secret Access Key&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Once added do a connection test to confirm back.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4wvycwrk6rhxvsbt13al.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4wvycwrk6rhxvsbt13al.png" alt="Select AWS Bedrock as Model Provider" width="800" height="423"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You may be wondering how to get the Keys. Let me guide you though the AWS IAM to create a AWS IAM user with policy to bedrock:InvokeModel and create access keys.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdkph4jfaoag6msscbf27.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdkph4jfaoag6msscbf27.png" alt="IAM Access Keys" width="799" height="384"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The policy will look like below json:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"Version"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2012-10-17"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"Statement"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"Effect"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Allow"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"Action"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="s2"&gt;"bedrock:InvokeModel"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"bedrock:InvokeModelWithResponseStream"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"bedrock:GetInferenceProfile"&lt;/span&gt;
      &lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"Resource"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="s2"&gt;"arn:aws:bedrock:&amp;lt;region&amp;gt;:&amp;lt;account-id&amp;gt;:inference-profile/global.anthropic.claude-haiku-4-5-&amp;lt;version&amp;gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"arn:aws:bedrock:*::foundation-model/anthropic.claude-haiku-4-5-&amp;lt;version&amp;gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"arn:aws:bedrock:::foundation-model/anthropic.claude-haiku-4-5-&amp;lt;version&amp;gt;"&lt;/span&gt;
      &lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="p"&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;h3&gt;
  
  
  Step 4: Select the Bedrock Model
&lt;/h3&gt;

&lt;p&gt;Here you need to select the model for the Agent from Bedrock list. 2 options:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;On Demand Models (Open Models are also available)&lt;/li&gt;
&lt;li&gt;Inference Profiles (Based on availability)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvmqgx0o1o3292cvgku4q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvmqgx0o1o3292cvgku4q.png" alt="Model Selection On Demand" width="800" height="635"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here you can use Haiku 4.5 with Global Inference Profile&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Figqn36cuc22lm7xk2ap8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Figqn36cuc22lm7xk2ap8.png" alt="Inference Profiles" width="764" height="260"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 5: Add Memory
&lt;/h3&gt;

&lt;p&gt;As a chatting agent, it should follow the last 5-10 conversations as context while giving output. Hence, we need to add a memory to the Chat Agent. n8n out of the box provides a &lt;code&gt;Simple Memory&lt;/code&gt;, just add the component and attach to the memory of the agent.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 6: Add Persona to the Agent
&lt;/h3&gt;

&lt;p&gt;Here you need to set input the personality of the agent e.g. what is agent is for and do's and don't in a prompt.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;You are a famous quote advisor, motivate the users.

&lt;span class="gu"&gt;# Do's:
&lt;/span&gt;&lt;span class="k"&gt;- &lt;/span&gt;keep it short and precise
&lt;span class="k"&gt;- &lt;/span&gt;response in markdown

&lt;span class="gu"&gt;# Don't:
&lt;/span&gt;&lt;span class="k"&gt;- &lt;/span&gt;avoid stereotyping
&lt;span class="k"&gt;- &lt;/span&gt;no explanation required
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frz7wzhdkjie5j6r6enw2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frz7wzhdkjie5j6r6enw2.png" alt="Add Persona" width="776" height="832"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Final run
&lt;/h2&gt;

&lt;p&gt;We have connected all the dots and now it's time to run.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4odc9jrqxbfkb6jeak7q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4odc9jrqxbfkb6jeak7q.png" alt="Final" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here is where you can start a chat session with the newly created Agent.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi1f9cwqyi99l16ckq8v1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi1f9cwqyi99l16ckq8v1.png" alt="Chat" width="800" height="749"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Ask &lt;code&gt;share a quote?&lt;/code&gt; and check out the response. You can visualize how the request flows between the chat input to the agent and gets a reply.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>node</category>
      <category>cloud</category>
      <category>claude</category>
    </item>
    <item>
      <title>How I Earned $700 in AWS Credits as an AWS Community Builder</title>
      <dc:creator>A. S. Md. Ferdousul Haque</dc:creator>
      <pubDate>Mon, 02 Nov 2026 15:55:22 +0000</pubDate>
      <link>https://dev.to/aws-builders/how-i-earned-700-in-aws-credits-as-an-aws-community-builder-24gc</link>
      <guid>https://dev.to/aws-builders/how-i-earned-700-in-aws-credits-as-an-aws-community-builder-24gc</guid>
      <description>&lt;p&gt;I got &lt;strong&gt;$700 worth of AWS credits&lt;/strong&gt; to play and learn across the AWS ecosystem, and you can follow the same path. Here's how.&lt;/p&gt;

&lt;h2&gt;
  
  
  TL;DR: Where the $700 comes from
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Source&lt;/th&gt;
&lt;th&gt;Credits&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;AWS Community Builders Program&lt;/td&gt;
&lt;td&gt;$500&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;New AWS account bonus&lt;/td&gt;
&lt;td&gt;$100&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;"Explore AWS" tasks (5 × $20)&lt;/td&gt;
&lt;td&gt;up to $100&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Total&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;up to $700&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Step 1: Join the AWS Community Builders Program
&lt;/h2&gt;

&lt;p&gt;The program opens for applications once a year, usually around &lt;strong&gt;November/December&lt;/strong&gt;. To get in:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Join the waitlist and submit your interest.&lt;/li&gt;
&lt;li&gt;Share your engaging posts and community contributions, since these are what get you noticed.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Benefits include:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;✨ $500 in AWS credits for your projects&lt;/li&gt;
&lt;li&gt;✨ Exclusive sessions with AWS product teams&lt;/li&gt;
&lt;li&gt;✨ 50% discount on AWS re:Invent tickets&lt;/li&gt;
&lt;li&gt;✨ One year of free CloudAcademy access&lt;/li&gt;
&lt;li&gt;✨ A free AWS certification of your choice&lt;/li&gt;
&lt;li&gt;✨ A global network of 3,000+ AWS experts&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Apply here:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;📌 &lt;a href="https://lnkd.in/dhYP-dSH" rel="noopener noreferrer"&gt;Join the waitlist&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;📌 &lt;a href="https://lnkd.in/dTHpHiTx" rel="noopener noreferrer"&gt;Program details&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 2: Get into the Builders portal and Slack
&lt;/h2&gt;

&lt;p&gt;Once you're selected, you get access to the &lt;strong&gt;AWS Builders portal&lt;/strong&gt; and the Community Builders &lt;strong&gt;Slack workspace&lt;/strong&gt;. The Slack is active and worth joining for its own sake. Members post new things constantly, and you hear about upcoming AWS products before they launch.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Claim your $500 credits
&lt;/h2&gt;

&lt;p&gt;Watch the &lt;code&gt;#cb-announcements&lt;/code&gt; Slack channel. When the time comes, the team posts a link to claim your &lt;strong&gt;$500 in AWS credits&lt;/strong&gt;.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;⚠️ &lt;strong&gt;Heads up:&lt;/strong&gt; every member gets a unique credit link. Don't share it, and don't redeem it on a company account.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Step 4: Create your AWS account (+$100)
&lt;/h2&gt;

&lt;p&gt;Use your personal credit link to create an account in the AWS Console.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You'll need an &lt;strong&gt;international credit card&lt;/strong&gt;. AWS usually makes a $1 charge to verify the card, then refunds it.&lt;/li&gt;
&lt;li&gt;As a first-year user, AWS gives you &lt;strong&gt;$100 in credits&lt;/strong&gt; to experiment with.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Running total: &lt;strong&gt;$600&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: Complete the "Explore AWS" tasks (+$100)
&lt;/h2&gt;

&lt;p&gt;After sign-up, the console shows a new &lt;strong&gt;Explore AWS&lt;/strong&gt; section covering popular services such as EC2, Serverless, RDS, Bedrock and Cost Alerts. Each task you complete earns &lt;strong&gt;$20&lt;/strong&gt;, and with five tasks you can earn up to &lt;strong&gt;$100&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;I've completed &lt;strong&gt;4 of 5&lt;/strong&gt;, which is &lt;strong&gt;$80&lt;/strong&gt; so far.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7ly47nbh3vse1n2q4lns.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7ly47nbh3vse1n2q4lns.png" alt="Explore AWS" width="799" height="284"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 6: Check your Billing page
&lt;/h2&gt;

&lt;p&gt;Open the &lt;strong&gt;Billing&lt;/strong&gt; page to see a full breakdown of every credit and where it came from.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flwguu8ncbiyaouc4pz8g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flwguu8ncbiyaouc4pz8g.png" alt="Billing page" width="800" height="347"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Wrap-up
&lt;/h2&gt;

&lt;p&gt;That's how you can reach &lt;strong&gt;$700 in credits in your first year&lt;/strong&gt; as an AWS Community Builder. That's plenty of room to build, break and learn on AWS without worrying about the bill.&lt;/p&gt;

&lt;p&gt;If you apply, I'd love to hear how it goes. Drop a comment below, and follow me for more AWS content. 🚀&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Program terms and credit amounts can change, so check the official AWS Community Builders pages for the latest details.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>cloud</category>
      <category>beginners</category>
      <category>career</category>
    </item>
    <item>
      <title>Opencode for Agentic Development with Local LLMs</title>
      <dc:creator>A. S. Md. Ferdousul Haque</dc:creator>
      <pubDate>Sun, 23 Nov 2025 12:48:22 +0000</pubDate>
      <link>https://dev.to/ferdousulhaque/opencode-for-agentic-development-with-local-llms-2h4k</link>
      <guid>https://dev.to/ferdousulhaque/opencode-for-agentic-development-with-local-llms-2h4k</guid>
      <description>&lt;p&gt;Agentic development is rapidly transforming the way developers design, build, and ship software. Tools like Opencode let developers pair powerful local LLMs with intelligent agents to automate coding tasks, refactor large codebases, and accelerate development—all while keeping data private and within your own machine.&lt;/p&gt;

&lt;p&gt;If you want to get started with Opencode using local LLMs (like Llama, Mistral, Qwen, DeepSeek, Gemma), here’s a simple, practical guide. before that, let's know&lt;/p&gt;

&lt;h2&gt;
  
  
  Why OpenCode?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Agentic workflows&lt;/strong&gt; – AI agents that can modify your codebase intelligently.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Local-first development&lt;/strong&gt; – Integrate your own LLM running on GPU or CPU.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Extensibility&lt;/strong&gt; – Bring your own models, tools, and workflows.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Security &amp;amp; Privacy&lt;/strong&gt; – No proprietary code leaves your machine.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Pre-requisites:
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Ollama&lt;/li&gt;
&lt;li&gt;GhostTTY&lt;/li&gt;
&lt;li&gt;Opencode&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Install and Run a Local LLM
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Go to &lt;a href="https://ollama.com" rel="noopener noreferrer"&gt;Ollama&lt;/a&gt; and follow the steps to install on your OS&lt;/li&gt;
&lt;li&gt;Add the desired LLM that supports agentic flow e.g. qwen3:8B, llama3.1:8b and so on. Check on ollama site.&lt;/li&gt;
&lt;li&gt;Run the following to install Qwen LLM to your local environment
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ollama pull qwen3:8b
ollama list
ollama run qwen3:8b
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Now add the following tweaking to increase context window for agents to work properly.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ollama run &amp;lt;model_name&amp;gt;
&amp;gt;&amp;gt;&amp;gt; /set parameter num_ctx 32768
&amp;gt;&amp;gt;&amp;gt; /save &amp;lt;model_name&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Install Ghostty
&lt;/h3&gt;

&lt;p&gt;There are several TTY supported with opencode, I prefer ghostty which is very simple at the same time good UIUX. Follow instructions on  &lt;a href="https://ghostty.org/docs/install/binary" rel="noopener noreferrer"&gt;Ghostty&lt;/a&gt; to install.&lt;/p&gt;

&lt;h3&gt;
  
  
  Install OpenCode
&lt;/h3&gt;

&lt;p&gt;Follow instructions on &lt;a href="https://opencode.ai/docs/" rel="noopener noreferrer"&gt;OpenCode&lt;/a&gt; to install.&lt;/p&gt;

&lt;h2&gt;
  
  
  Configuration
&lt;/h2&gt;

&lt;p&gt;Once the pre-requisite steps are done. Now comes the execution part. First we need to add the LLM to the OpenCode config &lt;code&gt;opencode.json&lt;/code&gt; file located at &lt;code&gt;.config/opencode/opencode.json&lt;/code&gt; to work on.&lt;/p&gt;

&lt;p&gt;For more providers of opencode check &lt;a href="https://opencode.ai/docs/providers/" rel="noopener noreferrer"&gt;here&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "ollama": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Ollama (local)",
      "options": {
        "baseURL": "http://localhost:11434/v1"
      },
      "models": {
        "qwen3:8b": {
          "name": "qwen3:8b"
        }
      }
    }
  }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once this is done, opencode is ready for action.&lt;/p&gt;

&lt;h2&gt;
  
  
  Execution
&lt;/h2&gt;

&lt;p&gt;Now let's build something. Follow the steps:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Open the ghostty terminal&lt;/li&gt;
&lt;li&gt;Create a directory for the application&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;opencode&lt;/code&gt; inside the directory&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvfaumxulwbqwc02mq84t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvfaumxulwbqwc02mq84t.png" alt="OpenCode in Ghostty" width="800" height="390"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Select the model from &lt;code&gt;/models&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxhuqf1f806b7xqrtixzu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxhuqf1f806b7xqrtixzu.png" alt="Select Local Model" width="800" height="511"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;By using TAB of keyboard select the &lt;code&gt;BUILD AGENT&lt;/code&gt; mode&lt;/li&gt;
&lt;li&gt;Give prompt for generating the code for new features or fix a bug in the application&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Final Product
&lt;/h2&gt;

&lt;p&gt;I just build a tic-tac-toe game using the local LLM, although my CPUs are burning now 🔥 &lt;a href="https://ferdousulhaque.github.io/tic-tac-toe/" rel="noopener noreferrer"&gt;Play here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8m8s5ynfnvt4l8ghpg72.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8m8s5ynfnvt4l8ghpg72.png" alt="Tic Tac Toe Game" width="800" height="837"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Benefits of Using Local LLMs
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Zero data leakage across the internet&lt;/li&gt;
&lt;li&gt;Better cost efficiency—no API billing&lt;/li&gt;
&lt;li&gt;Unlimited customization of models&lt;/li&gt;
&lt;li&gt;Offline development&lt;/li&gt;
&lt;li&gt;Faster iteration with GPU acceleration&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Setting up Opencode with a local LLM unlocks a powerful, private, and fully autonomous coding partner. Whether you're building services, refactoring monoliths, or improving developer productivity, agentic development gives you a major edge.&lt;/p&gt;

&lt;p&gt;If you're working with large codebases or exploring AI-powered software engineering, this setup is one of the best ways to get started.&lt;/p&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>llm</category>
      <category>privacy</category>
    </item>
  </channel>
</rss>
