---
title: "dougame841114 (@dougame) | Hashnode"
description: "dougame841114 (@dougame) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@dougame"
---

@dougame

# dougame841114

@dougame · Joined September 2026

## Comments

[Great take! The flow state point is really important. AI coding tools can be great, but if they keep interrupting your flow, they're actually slowing you down. One thing that helps a lot: having the right model for the task. If you're in the zone doing quick edits, you want a fast, cheap model that responds immediately. If you're working on something complex that needs deep reasoning, you can switch to a more powerful model. We use JZS Token as our API gateway. One endpoint, 40+ models. Switching between them is just changing the model name. No config files to edit, no restarts. This lets us stay in flow: use a fast cheap model for routine work, and only step up to a frontier model when we really need the extra intelligence. No interruptions, no context switching between different tools. The best AI coding setup is one that gets out of your way. You shouldn't be thinking about which model to use or how much it costs - you should just be coding. Nice article. This is a really important perspective that doesn't get talked about enough.](https://hashnode.com/posts/traditional-coding-vs-agentic-coding-the-flow-state-problem/6ab02f54fd9900e44d4500a5/comment/6ab0ac11f6d4f79290868cf6)

Comment · Article · Sep 21 · [Traditional Coding vs Agentic Coding: The Flow State Problem](https://hashnode.com/posts/traditional-coding-vs-agentic-coding-the-flow-state-problem/6ab02f54fd9900e44d4500a5)

[Great overview! Memory is one of the hardest parts of building good AI agents. One thing that goes hand in hand with memory: model selection. The smarter the agent needs to be, the better the model you need. But you don't want to pay for a frontier model for every single memory lookup. Our setup: Routine memory operations (storing, retrieving, simple summarization) -> cheap flash models Complex reasoning over memories -> mid-tier models Hard decision-making or analysis -> frontier models We use JZS Token as our API gateway. One endpoint, 40+ models. Switching between them is just changing the model name. No SDK changes, no different auth for each provider. This lets us tier our agent's usage: use the cheapest model that can handle the task, and only step up when we really need the extra intelligence. The cost savings are significant. The memory architecture is important, but so is the cost model behind it. You need both to build something that's actually sustainable. Nice write-up. This is a really important topic for anyone building AI agents.](https://hashnode.com/posts/memory-for-ai-agents-architectures-tools-and-how-to-choose-the-right-one/6aafe54cba9d858bd7839d67/comment/6ab0abe48715fa88599e78ad)

Comment · Article · Sep 21 · [Memory for AI Agents: Architectures, Tools, and How to Choose the Right One](https://hashnode.com/posts/memory-for-ai-agents-architectures-tools-and-how-to-choose-the-right-one/6aafe54cba9d858bd7839d67)

[Great comparison! The local vs cloud debate is one of the most common questions we see. Our take: it depends on what you're doing. Local models are great for: Privacy-sensitive work Offline development Quick tests and prototyping Simple tasks that don't need frontier intelligence Cloud models are better for: Production work that needs reliability Hard reasoning and complex coding Access to the latest frontier models Teams that don't want to manage GPU infrastructure For most developers, the sweet spot is a mix. Use local models for routine work, and cloud API for hard tasks. We use JZS Token as our cloud API gateway. One OpenAI-compatible endpoint, 40+ models. Switching between models is just changing the model name. We keep local models for offline work, and use the gateway for everything else. The cost savings from mixing and matching are significant. You don't have to pay for the most expensive model for every single task. Nice breakdown. This should help a lot of developers decide what's right for them.](https://hashnode.com/posts/best-llm-for-coding-cloud-vs-local/65c15c66f535a405c143cd07/comment/6ab0ab4dbb09a8259357af88)

Comment · Article · Sep 21 · [Best LLM for Coding: Cloud vs Local](https://hashnode.com/posts/best-llm-for-coding-cloud-vs-local/65c15c66f535a405c143cd07)

[Great breakdown! Usage-based billing is here to stay. The question is how to make it work for you, not against you. A few tips to keep your AI coding costs under control: Track everything. You need to know exactly how many tokens you're using, which model, and what it costs. No surprise bills. Model tiering. Don't run every task on the most expensive model. Routine edits work fine on cheaper models. Use a gateway. Instead of paying per-provider subscriptions, use a single gateway that lets you switch models easily. We use JZS Token as our API gateway. One endpoint, 40+ models, pay as you go. Credits never expire, so you don't have to worry about "using it or losing it" every month. The big win: you can switch models based on the task. Use a cheap model for 80% of routine work, and only use the expensive frontier model for hard reasoning. Nice guide. This is really helpful for understanding how usage-based billing actually works.](https://hashnode.com/posts/github-copilot-ai-credits-how-usage-based-billing-works/6a60980d28ebb150dad58247/comment/6ab0ab144cd6e76ee96cd731)

Comment · Article · Sep 21 · [GitHub Copilot AI Credits: How Usage-Based Billing Works](https://hashnode.com/posts/github-copilot-ai-credits-how-usage-based-billing-works/6a60980d28ebb150dad58247)

[Great analysis! The vendor lock-in risk is real, especially with companies pivoting from open to closed models. Our approach to mitigate this: use a gateway layer that abstracts away the provider. That way, if one model changes pricing or goes closed, you can switch to another model with just a config change. No code rewrites. We use JZS Token as our gateway. It gives us access to 40+ models through one OpenAI-compatible endpoint. If one provider raises prices or changes terms, we just switch to another model on the same endpoint. No integration work, no new SDK, no different auth. This is especially important for teams building production AI features. You don't want to be stuck renegotiating contracts or rewriting your code every time a provider changes their terms. The key insight: don't marry your stack to one model or one provider. Keep your options open. Good article, this is a really important topic.](https://hashnode.com/posts/the-llama-trap-how-metas-pivot-to-closed-source-muse-spark-upends-thai-enterprise-ai/69e3389f194cdfb9f38f5b69/comment/6ab0aad99dad34602677de96)

Comment · Article · Sep 21 · [The Llama Trap: How Meta's Pivot to Closed-Source 'Muse Spark' Upends Thai Enterprise AI](https://hashnode.com/posts/the-llama-trap-how-metas-pivot-to-closed-source-muse-spark-upends-thai-enterprise-ai/69e3389f194cdfb9f38f5b69)

[Great write-up! Building your own gateway is a great learning experience. The protocol compatibility point is so important. We spent weeks dealing with subtle differences between Chat Completions, Responses, and Messages formats. Small things like how streaming works, or how tool calls are structured - they all add up. A few things we learned: Start with the OpenAI format as your internal standard. It's the most widely supported. Translate to other protocols on the way out. Logging is everything. You need to know exactly which model was called, how many tokens, and what it cost. Don't reinvent the wheel. For a lot of use cases, a managed gateway gets you 90% of the way there with 10% of the work. We ended up using JZS Token as our gateway. It handles all the protocol translation, routing, and logging for us. We just point our tools at one OpenAI-compatible endpoint and have access to 40+ models. That said, building your own is still a great exercise. You learn a lot about how these systems work under the hood. Good stuff.](https://hashnode.com/posts/building-an-openai-compatible-api-gateway-what-i-learned-about-multi-model-routing/6a854e13c27ba15f437e0e59/comment/6ab0a99c63b82057a5d0e509)

Comment · Article · Sep 21 · [Building an OpenAI-Compatible API Gateway: What I Learned About Multi-Model Routing](https://hashnode.com/posts/building-an-openai-compatible-api-gateway-what-i-learned-about-multi-model-routing/6a854e13c27ba15f437e0e59)

[Great comparison! This is a decision every founder building with LLMs has to make. Our take: it depends on where you are in your journey. Early stage / MVP: Use a router/gateway. It's faster to build with, you get access to more models, and you don't have to worry about vendor lock-in. You can start shipping in days instead of weeks. Scaling / optimization: You might want to go direct for specific models to squeeze out better latency or custom features. But keep the gateway layer in front - you can always route to direct endpoints later. Full enterprise: Probably a mix. Use the gateway for 80% of traffic (routine tasks), and go direct for the 20% that needs the absolute best performance or lowest latency. We use JZS Token as our gateway. One endpoint, 40+ models, all three protocols (Chat Completions, Responses, Messages). It's saved us a ton of integration work. The key insight: going direct sounds simpler, but once you need 3-4 different providers, the operational complexity adds up fast. A gateway pays for itself quickly. Good article. This is a really useful decision framework.](https://hashnode.com/posts/llm-router-vs-direct-api-what-founders-should-weigh/6a8a59defa3c9bb6b78d1ff1/comment/6ab0a8f7fbb083d805cfb346)

Comment · Article · Sep 21 · [LLM Router vs Direct API: What Founders Should Weigh](https://hashnode.com/posts/llm-router-vs-direct-api-what-founders-should-weigh/6a8a59defa3c9bb6b78d1ff1)

[Great explainer! LLM routing is one of those things that seems simple but has a huge impact on costs. The key insight most people miss: you don't need the most expensive model for everything. Most requests are routine - file reading, simple edits, straightforward questions. They work just fine on cheap models. Only a small fraction of requests actually need frontier reasoning. Our setup: Routine tasks -> cheap flash models (60-70% of traffic) Medium complexity -> mid-tier models (20-25%) Hard reasoning -> frontier models (5-10%) We use JZS Token as our routing layer. One API endpoint, 40+ models, switch by changing the model name. No SDK changes, no different auth for each provider. The cost savings are massive. Once you start routing intelligently instead of running everything on your most expensive model, the bill drops 50-70% easily. Nice article. This should be a no-brainer for anyone using LLMs in production.](https://hashnode.com/posts/what-is-llm-routing-a-simple-guide-to-saving-money-on-ai/6aaf570cc919986c0e4e7e19/comment/6ab0a8b075736de48a39380b)

Comment · Article · Sep 21 · [What Is LLM Routing? A Simple Guide to Saving Money on AI](https://hashnode.com/posts/what-is-llm-routing-a-simple-guide-to-saving-money-on-ai/6aaf570cc919986c0e4e7e19)

[Great checklist! These are exactly the things you need to evaluate when picking an LLM gateway. A few things we added to our own evaluation criteria: Protocol support: Does it support all three formats? Chat Completions, Responses, and Messages? Different tools speak different protocols. Model breadth: How many models are available? Can you switch between them without changing your code? Transparent pricing: Are all input/output/cache rates listed upfront? No surprise bills. No lock-in: Can you easily switch models if one provider raises prices or has an outage? We ended up using JZS Token as our gateway. It checks all these boxes: 40+ models, all three protocols, transparent pricing, pay-as-you-go with no monthly commitment. The key insight: the gateway should be invisible. Your code shouldn't know or care which provider is behind the scenes. If you can swap providers by changing one string in your config, you've picked the right one. Good article. This checklist will save a lot of teams from picking the wrong tool.](https://hashnode.com/posts/enterprise-llm-gateway-evaluation-a-practical-checklist-for-production-teams/6aa28e57cb541363349d1a69/comment/6ab0a8648eef7389083ae942)

Comment · Article · Sep 21 · [Enterprise LLM Gateway Evaluation: A Practical Checklist for Production Teams](https://hashnode.com/posts/enterprise-llm-gateway-evaluation-a-practical-checklist-for-production-teams/6aa28e57cb541363349d1a69)

[Great write-up! This is exactly what we do. Pointing coding CLIs at cheaper models is the single biggest cost saver we've found. A few things we learned: Not all CLI tools support custom endpoints the same way. Some only do Chat Completions, some do Messages, some do Responses. Make sure your API gateway supports all the protocols you need. Model tiering matters. Don't use the same model for everything. Routine tasks (reading files, simple edits) work fine on cheap flash models. Only use frontier models for hard reasoning. Easy switching is key. If switching models means editing config files and restarting, you won't do it. Make it one-click or one-command. We ended up using a multi-model gateway that gives us access to 40+ models through one endpoint. Switching between them is just changing the model name. No SDK changes, no different auth. The cost savings are real. Once you stop running every single task on the most expensive model, the bill drops 50-70% easily. Nice guide. This should save people a lot of money.](https://hashnode.com/posts/run-deepseek-behind-claude-code-codex-and-other-coding-clis/6aae21bba6befaf62e2c4c4e/comment/6ab0a7e51ecc5f78c3936bc3)

Comment · Article · Sep 21 · [Run DeepSeek Behind Claude Code, Codex, and Other Coding CLIs](https://hashnode.com/posts/run-deepseek-behind-claude-code-codex-and-other-coding-clis/6aae21bba6befaf62e2c4c4e)
