In an earlier Strata experiment, I got Qwen3.8 Flash-Next running fast enough to be genuinely useful on an older server I already keep online for databases and home services. The machine has two Intel Xeon E5-2650 v2 processors, two 12 GB RTX 3060s, and 224 GiB of system RAM. The earlier results raised a follow-up question. Can this hardware carry real coding-agent work and shrink my cloud AI bill?
Coding agents are chatty by nature. When an agent drafts a small change or checks a patch, it reads files, runs tests, and replays the same repository context turn after turn. Running those turns locally sounds like an easy win, especially before spending thousands on dedicated inference hardware.
For the coding-agent traffic I measured, the added CPU and GPU electricity was small on a server I already keep running. The financial case depends more on how often the local agent finishes without a cloud fallback, how much waiting the work can tolerate, and whether the hardware is already paid for.
Measuring real coding-agent traffic#
I ran three C# repository tasks from SWE-bench Live through Qwen3.8 Flash-Next in Strata and matched them to the server’s CPU and GPU readings. A competing request showed up in the queue during one run, and the background load was shifting. I used the two quieter runs to estimate added energy by subtracting the draw in nearby background periods.
| Local agent runs | Observation |
|---|---|
| All three runs | 1.85M reported tokens in 42 min |
| Two quieter runs used for the cost estimate | 1.25M reported tokens in 21 min1 |
| Average CPU and GPU power, background / quieter runs | 129 W / 175 W |
| Estimated energy above background in the quieter runs | 15.7 Wh, or 12.6 Wh per million reported tokens |
The readings cover both CPUs and both GPUs and arrive about once a minute. They give a run average. Measuring how much extra power the entire server draws would require comparing readings at the wall during and between runs.
The agent reused repository context across turns. In the two quieter runs, 98.9% of reported tokens were input, and 95.8% of that input came from the cache.
Local electricity vs. cloud API bills#
The two quieter runs averaged about 624K reported tokens per attempt. At that size, the two lower weekly volumes in the table would represent about 8 to 16 attempts. The higher volume illustrates what happens if I send more work to the server. All three assume the same token mix as the benchmark.
I applied published API rates to Qwen’s reported counts for an equal token split between GPT-5.6 Sol and GPT-5.6 Terra, and for off-peak DeepSeek V4.1 Flash. The two pricing cases bill all input at the uncached rate or give the provider’s cache discount to the same share of input Qwen reused.
| Cost of serving the benchmark’s token mix | Per million tokens | 30 days at 5M/week | 30 days at 10M/week | 30 days at 50M/week |
|---|---|---|---|---|
| Existing server, extra CPU and GPU electricity at the East Coast rate2 | $0.0024 | $0.05 | $0.10 | $0.52 |
| Existing server, same work at the West Coast rate | $0.0032 | $0.07 | $0.14 | $0.69 |
| GPT-5.6 Sol/Terra, equal split, uncached input3 | $3.691 | $79.09 | $158.18 | $790.91 |
| Same GPT blend, local cache share qualifies | $0.705 | $15.10 | $30.20 | $151.02 |
| DeepSeek V4.1 Flash, off-peak, uncached input | $0.155 | $3.32 | $6.64 | $33.19 |
| Same DeepSeek rate, local cache share qualifies | $0.0156 | $0.33 | $0.67 | $3.33 |
At the highest volume shown, the estimated added CPU and GPU electricity still comes in under a dollar on either coast. The same token mix costs about one fifth as much on the GPT blend when the API matches Qwen’s cache share. Off-peak DeepSeek with that cache share leaves even less room for local savings.
The estimate applies to bursts like these on a server I already keep on. A machine bought for inference also needs a budget for the hours it spends waiting for work. These examples show how the bill changes with assumed draw and runtime.
- Background CPU and GPU draw. If my shared server’s observed background draw of 129 W held around the clock, those components would use about 93 kWh over 30 days ($17.84 East / $23.77 West).
- Four hours a day at 300 W. The two GPUs would use 36 kWh during those hours over 30 days ($6.92 East / $9.21 West). That is their total energy during those hours.
- Continuous load. Two GPUs drawing 300 W around the clock would use 216 kWh over 30 days ($41.49 East / $55.27 West). A separate scenario with an entire host drawing 400 W at the wall would use 288 kWh ($55.32 East / $73.70 West).
Why cheap tokens don’t automatically shrink your cloud bill#
Cheap tokens only save money if the local model actually finishes work you would otherwise pay the cloud to do.
The two quieter runs used similar token counts. One produced a patch that passed its scored checks. The other ended without a patch to review. If I send the unfinished job to a cloud agent, the local attempt adds time and electricity and I still pay for the cloud call.
A second request appeared in the queue during the first run. I saw it waiting in status snapshots, so its wait time and the effect on turnaround remain unknown. That wait matters most when I need a patch back before I can review and merge it.
Where an older shared server shines today is asynchronous work that can wait. Triaging an overnight .NET build failure is a great fit: the agent can inspect the logs behind other jobs and leave the failing step and relevant lines waiting for me in the morning. That lines up with my earlier Strata experiment, where Qwen3.8 Flash-Next reliably pinpointed failure causes in synthetic incident logs.
When does buying hardware actually pay off?#
There is a massive economic difference between reusing a server you already own and already leave on (where the hardware is a sunk cost) and buying hardware specifically to offset cloud spend. It also helps to be honest about how you pay for cloud AI: moving routine turns off a flat-rate subscription you plan to keep frees up usage headroom. You save money if you can downgrade or drop a plan.
To test the purchase math, I amortized four ownership scenarios over 36 months with zero resale value, using the $5,999 ASUS Ascent GX10 (128 GB unified memory, 1 TB SSD) as the modern dedicated comparator:
| Cost to own the machine | Basis | Per 30 days |
|---|---|---|
| Buy the older build again | $1,200 over 36 months | $33.33 |
| Include initial setup time | Add 12 hours at $50/hour over 36 months | $50.00 |
| Include setup and a support allowance | Add 1 hour/month at $50/hour | $100.00 |
| Buy a modern dedicated system (ASUS Ascent GX10) | $5,999 over 36 months, purchase alone2 | $166.64 |
I spent 12 hours on the initial build and Proxmox configuration. The hourly rate and recurring support allowance are assumptions. The chart adds the estimated CPU and GPU electricity from my shared server to the older build’s purchase costs. Keeping a dedicated system on between jobs would add to that bill.
Prompt caching changes how much paid traffic the hardware needs to replace to break even against the GPT-5.6 Sol/Terra blend.
- With uncached API input, the older build breaks even at 2.1M tokens/week (hardware and electricity), 3.2M/week (including setup), and 6.3M/week (including setup and support). The 5M scenario covers setup. The 10M scenario covers the support allowance as well.
- If the API matches Qwen’s cache reuse, the thresholds rise to 11.1M, 16.6M, and 33.2M tokens/week. At 5M or 10M, the API costs less than the hardware alone. At 50M, the older build could cover setup and support if it actually took that volume off the API bill.
- For the ASUS Ascent GX10, the purchase alone would break even at roughly 55M displaced tokens/week against the cached GPT blend. Electricity and upkeep would raise that threshold. Data locality and offline availability can still make a dedicated machine valuable.
A practical way to test before you spend#
If you already have an older machine running around the house or office, start there before buying anything. Send it routine, deadline-tolerant repository work such as patch checks, log triage, and overnight build failures. Keep a simple log for each job:
- Queue depth when you submitted the task
- Total wait time from request to usable answer against your deadline
- Usability (whether the result passed checks or needed heavy human rework)
- Fallback cost whenever you had to hand the job back to a cloud model
That small log tells you exactly what to do next. If useful results regularly arrive late or pile up behind competing requests, you have a concrete throughput bottleneck worth testing on faster hardware. If the server finishes promptly and you still end up paying a cloud model to redo the work, try a more narrowly defined task or a different model.
An older server I already keep on is a cheap place to try work that can wait. Before buying a dedicated machine, I’d want to know how much work it can finish by my deadline, which API charges that would avoid, and what the machine would draw over a normal day.
References#
- Revisiting Qwen3.8 Flash-Next on Dual RTX 3060s with Strata (companion performance and quality tests on the same host)
- EIA Electric Power Monthly, Table 5.6.B and Table 5.4.B (2026 regional residential electricity rates and sales weights)
- OpenAI API Pricing and DeepSeek API Pricing (cloud token and cache rates checked December 3, 2026)
- ASUS Ascent GX10 on NVIDIA Marketplace (128 GB / 1 TB dedicated hardware comparator)
- Benchmark data and cost calculations (raw run telemetry and break-even worksheets)
Reported usage counts both prompt and generated tokens. Input accounted for 98.9% of the two quieter runs, including cached context that was counted again when the agent reused it. ↩︎
The East Coast and West Coast residential rates are 19.21¢ and 25.59¢ per kWh, respectively, using January–September 2026 data. The dedicated purchase uses the listed price of the ASUS Ascent GX10 with 128 GB of unified memory and a 1 TB SSD. Ownership scenarios assume zero resale. Electricity rates · Regional sales weights · GX10 listing ↩︎ ↩︎
The quieter runs used 98.9% input and 1.1% output, with 95.8% of input reused. Projections assume the same counts and exclude cache writes, tools and extra attempts. DeepSeek peak rates double the off-peak figures. A cloud run could differ in answer quality, latency and usage. Prices checked December 3, 2026. OpenAI pricing · DeepSeek pricing · Benchmark and calculations ↩︎