---
title: "The Open Source AI Stack"
description: "Adopting open models for agentic coding is framed as a five-layer \"MIGHT\" stack: model, inference provider, gateways/routers, harness and tools (skills and MCP), with each layer swappable independently so new models can be tried in minutes."
url: "https://swe.quest/articles/the-open-source-ai-stack-4e2d322b6b4e06e6"
canonical: "https://www.together.ai/blog/the-open-source-ai-stack"
source: "Together AI"
published: "2026-09-09"
difficulty: "easy"
kind: "How-to"
reading_minutes: 14
tags: ["ai-coding","ai-agents","llms","inference"]
---

# The Open Source AI Stack

A post on [Together AI](https://swe.quest/sources/together.md), published 2026-09-09, 14 min read, How-to. Original: [https://www.together.ai/blog/the-open-source-ai-stack](https://www.together.ai/blog/the-open-source-ai-stack)

## Summary

Adopting open models for agentic coding is framed as a five-layer "MIGHT" stack: model, inference provider, gateways/routers, harness and tools (skills and MCP), with each layer swappable independently so new models can be tried in minutes. Large MoE models like Kimi K3 suit ambiguous multi-step work such as refactors and debugging, while small models like GLM 5.3 Flash are roughly 20x cheaper and match them on tightly scoped tasks. Gateways such as OpenRouter, Vercel AI Gateway and LiteLLM route across providers, and harnesses like OpenCode or Amp execute the tool calls the model requests. The practical advice is to treat model choice as tool selection and to start fresh sessions often to keep context clean.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)

## Prerequisites

- LLM API usage ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- coding agents like Claude Code ([easy posts on AI agents](https://swe.quest/tags/ai-agents.md?difficulty=easy))

## Keywords

Model Context Protocol, OpenRouter, LiteLLM, OpenCode, Kimi K3, GLM 5.3 Flash, Mixture-of-Experts, Together AI

## Related posts

- [Is it agentic enough? Benchmarking open models on your own tooling](https://swe.quest/articles/is-it-agentic-enough-benchmarking-open-models-on-your-own-tooling-0278c737719b3002.md): Hugging Face · 2026-06-18 · Medium · 15 min read · Evaluation, AI agents, AI for coding, Developer tools, API design
  A benchmarking harness measures not just whether a coding agent solves a task with a library, but how much work it took: turns, tokens, time, errors, and behavior "markers" such as whether it used a CLI or the pipeline API.
- [Open-source DeepResearch – Freeing our search agents](https://swe.quest/articles/open-source-deepresearch-freeing-our-search-agents-72a8cc1624888c05.md): Hugging Face · 2025-02-04 · Medium · 17 min read · AI agents, LLMs, Evaluation, Open source
  Hugging Face reproduced OpenAI's Deep Research agent in about 24 hours using the open smolagents framework and reached 55.15% on the GAIA validation set, up from roughly 46% for the previous open state of the art (Magentic-One).
- [OpenCode with Docker Model Runner for Private AI Coding](https://swe.quest/articles/opencode-with-docker-model-runner-for-private-ai-coding-640e2f146435d737.md): Docker · 2026-01-15 · Medium · 8 min read · AI for coding, Inference & serving, LLMs, Containers
  OpenCode can use locally hosted models by pointing an @ai-sdk/openai-compatible provider in opencode.json at Docker Model Runner's OpenAI-compatible endpoint (localhost:12434/v1, with TCP enabled on Docker Desktop).
- [Open Models have crossed a threshold](https://swe.quest/articles/open-models-have-crossed-a-threshold-c54376af892bf600.md): LangChain · 2026-10-13 · Medium · 7 min read · Evaluation, LLMs, AI agents, Cost optimization
  Open-weight models GLM-5 and MiniMax M2.7 now score close to closed frontier models on core agent tasks in LangChain's Deep Agents eval suite.
- [Introducing smolagents: simple agents that write actions in code.](https://swe.quest/articles/introducing-smolagents-simple-agents-that-write-actions-in-code-081cf3257f37300e.md): Hugging Face · 2024-12-31 · Medium · 11 min read · AI agents, LLMs, Python, Open source
  smolagents is a minimal Python library from Hugging Face for building LLM agents, with first-class support for code agents that write their actions as Python code instead of JSON tool calls.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
