Cost guide

Why token costs make local AI worth learning

Every AI bill is measured in tokens, and every coding agent burns them by the novel. Understanding the meter is not accounting trivia: it is the thing that tells you which work to run free on your own machine and which work is worth paying a hosted model for.

The meter

How you are actually charged

Input: you pay for what the model reads

Every request sends your prompt plus everything the tool decides the model needs: system instructions, conversation history, and file contents. A coding agent on a real project re-sends most of that every turn. Reading is the bulk of the bill.

Output: you pay more for what it writes

Generated text costs several times the input rate. A model that rambles is not just slower; it is more expensive. This is why precise instructions and scoped requests are an economic skill, not just a quality one.

Context: the window is a budget

Bigger context windows cost more per request and, on local hardware, cost memory: a tool like Ollama recommends 64K or more for bigger projects, which a small laptop feels. Feeding a model five files when the question concerns one is paying rent on space nobody used.

Repetition: the silent multiplier

The same instructions and files re-sent every turn, the same 4,000-token document pasted into every message, the same output regenerated because nobody saved it. None of these are model failures; they are workflow failures with a price tag.

The local math

Where free beats fast, and where it does not

A local model's marginal cost per message is zero, which changes behavior in a way people underrate. When experimenting is free, you experiment more: more test runs, more drafts, more willingness to feed the model the ugly case. That volume is exactly how you learn what models can and cannot do. On a meter, most people ration that learning without noticing.

The honest trade: a small local model is slower on big context and weaker on hard reasoning, and a coding agent running on one is a small-job tool, good at explain this file, write this test, rename this across a folder, and poor at multi-file builds. So the winning pattern is not local instead of hosted. It is local for the repeated low-risk volume, hosted for the work that earns its rate, and a written record of which is which, so the routing decision can be defended and revisited.

The habits

Five habits that cut any AI bill

Habit one

Route on purpose

Sort, tag, extract, summarize, and draft-structured-text are local-model jobs. Long reasoning and high-stakes answers are hosted jobs. Write the rule down; a routing decision you cannot explain is a bill you cannot predict.

Habit two

Send less per request

Point the agent at the one file the question concerns, not the folder. Trim history you no longer need. Every token of context is rent, and most requests carry empty rooms.

Habit three

Save what the model got right

A good output regenerated three times because nobody saved it is three times the price. Keep the good prompts, the good outputs, and the project memory that carries them forward.

Habit four

Demand a reason for context

When an agent reads a file, ask why. Tools that pull targeted evidence instead of whole directories cost less and answer more precisely. This is a build-review question, not an accounting one.

Habit five

Check the meter monthly

Whatever you use has a usage view. Ten minutes a month reading where the tokens actually went will change your next build decisions more than any optimization article, including this one.

The point

Cost literacy is a building skill

Nobody builds durable AI systems while ignorant of what the system costs to run. Token literacy is the difference between a workflow that survives contact with a monthly budget and one that gets quietly turned off in week three. The course treats it that way: cost shows up as a design constraint, next to speed, accuracy, and privacy, and learning to route work by all four is a capstone-level skill, not a footnote.

Questions and answers

Cost questions, answered plainly

What is a token, in plain words?

A token is a chunk of text, roughly three-quarters of a word on average, and it is the unit every AI bill is measured in. You pay twice for every request: once for what you send (the input, including all the context and files the model has to read) and once for what it writes back (the output, which costs more per token).

Why is a coding agent so much more expensive than chatting?

Because of the reading. On every turn the agent re-sends its full instructions plus every file it is working with, which is often a novel's worth of text to produce one paragraph. The reading is the bill. A long session on a big project can burn more tokens than a month of casual chat.

How much does local AI actually save?

After the one-time download, a local model costs nothing per message: no tokens, no meter, no rate limit. The trade is speed and capability: small local models are slower and weaker on hard reasoning. Run the repeated, low-risk text jobs local and the token bill shrinks to the work that actually needs a big model.

What does this look like in dollars?

Hosted assistants run $0 to about $20 a month for a person. Coding agents on real projects can burn well beyond that in heavy weeks because of context re-sending. A local lane handles the routine volume at zero marginal cost, so the paid meters only run on work that earns it.

Is token cost a reason to avoid AI tools?

No, it is a reason to understand them. People who know how the meter works make better builds: smaller context windows, targeted file access, reusable outputs, and a written rule for what runs local versus hosted. The bill becomes a design signal instead of a surprise.

Keep building

Learn the meter, then build past it

The course covers token economics where they belong: inside the builds. You run hosted models, run a local lane on your own machine, and make the routing decision with a written record you can defend. The bill becomes something you designed, not something you discovered.