I wanted to venture into agentic coding sessions using an open-weight model such as Qwen 3.8. My goal was to self-host the Qwen model on Azure Kubernetes Service (AKS) and manage its inference workload using the Kubernetes AI Toolchain Operator (KAITO) add-on. And then configure an AI Agent Harness OpenCode to call my inference workload and build a simple Tetris Game.
I wanted to answer:
1) How effective would this LLM be in building a Tetris game in python.
2) Given I have an azure subscription quota of only one Nvidia A100 GPU (80GB VRAM), what is the better Qwen model that I can deploy?
3) Can I configure a AI coding harness to point to the LLM and support effective tool calling to generate and test python code?
This article connects OpenCode, a terminal-based agent harness, to a Qwen3.8-27B model served on Azure Kubernetes Service (AKS) with KAITO and vLLM.
The important distinction is between model serving and agent execution:
- KAITO and vLLM serve Qwen3.8-27B through an OpenAI-compatible HTTP API.
- OpenCode owns the coding-agent loop.
- OpenCode reads the workspace, proposes or applies file edits, and runs local commands through its tools.
- The model supplies reasoning and tool calls; it does not receive direct access to the developer machine.
This makes the AKS endpoint an inference backend while OpenCode remains the local execution environment.
Architecture
Architecture diagram

The example uses the KAITO workspace manifest qwen3.8-27B-workspace.yaml. It requests one Standard_NC24ads_A100_v4 node and configures vLLM for a 32K context window and Hermes tool-call parsing.
Prerequisites
- An AKS cluster with KAITO and the GPU provisioning components installed.
- GPU quota for
Standard_NC24ads_A100_v4in your azure subscription. az,kubectl,curl, andjqon the machine running the commands.- OpenCode installed. A free, open-source AI coding agent that runs directly in your terminal.
The model configuration in this example is the relevant part of the KAITO manifest:
apiVersion: v1kind: ConfigMapmetadata: name: qwen3.8-27B-inference-paramsdata: inference_config.yaml: | vllm: gpu-memory-utilization: 0.95 max-model-len: 32768 enable-auto-tool-choice: true tool-call-parser: hermesapiVersion: kaito.sh/v1beta1kind: Workspacemetadata: name: workspace-qwen3.8-27bresource: instanceType: "Standard_NC24ads_A100_v4"inference: preset: name: "Qwen/Qwen3.8-27B" config: "qwen3.8-27b-inference-params"
In the inference_config.yaml, I enable-auto-tool-choice and tool-call-parser: hermes allow vLLM to translate Qwen’s tool-call output into the OpenAI-compatible tool-call format. OpenCode still has to execute the resulting tools locally.
Deploy or select the KAITO workspace
Apply the workspace from the repository root:
kubectl apply -f qwen3.8-27b-workspace.yamlkubectl get workspace workspace-qwen3-8-27b -w

The workspace can remain pending while the GPU node is provisioned and the model is loaded. Inspect the backing pod when needed:
kubectl get pods -l kaito.sh/workspace=workspace-qwen3-8-27b -o widekubectl describe workspace workspace-qwen3-8-27bkubectl logs -n default -l kaito.sh/workspace=workspace-qwen3-8-27b --tail=20

This workspace is ready or succeeded state before configuring OpenCode coding agent. The service name used below is workspace-qwen3-8-27b.
Expose the inference endpoint with an AKS LoadBalancer
The KAITO service can be exposed through an Azure LoadBalancer. This is provides network connectivity directly from my developer machine to AKS. This gives OpenCode a stable HTTP endpoint that is reachable outside the Kubernetes cluster:
kubectl patch svc workspace-qwen3-8-27b \ -p '{"spec":{"type":"LoadBalancer"}}'kubectl get svc workspace-qwen3-8-27bLB_IP=$(kubectl get svc workspace-qwen3-8-27b \ -o jsonpath='{.status.loadBalancer.ingress[0].ip}')export KAITO_BASE_URL="http://${LB_IP}/v1"echo "$KAITO_BASE_URL"
Wait for the external IP to appear. In the current setup, the resolved URL is:
http://20.116.181.127/v1
For simple demo purposes, the public endpoint is not restricted with the network and authentication controls. The dummy API key used by this vLLM service is only a request placeholder and is not public authentication.
Validate the endpoint before starting OpenCode
First ask the service which model ID it exposes:
curl --fail-with-body --max-time 15 \ http://20.175.159.44/v1/models | jq

The response should contain Qwen3-8-27B. In this deployment the model ID is expected to be qwen3-8-27b, but the value returned by /v1/models is authoritative. Use that exact value in the request and OpenCode configuration.
Then send a small non-streaming chat request:
curl --fail-with-body --max-time 120 \ http://20.175.159.44/v1/chat/completions \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer dummy' \ -d '{ "model": "qwen3.8-27b", "messages": [ {"role": "user", "content": "Return only the word readyWrite a function to calculate prime numbers."} ], "temperature": 0.2, "max_tokens": 128, "chat_template_kwargs": {"enable_thinking": false} }' | jq -r '.choices[0].message.content'

The expected result is ready.
In the next blog post Part 2, I will show the configuration of OpenCode coding agent and demonstrating building a game.
Pingback: Qwen3-27B on AKS with OpenCode: Agentic Coding Setup and Demo