For the complete documentation index, see llms.txt. This page is also available as Markdown.

How to reduce costs

Practical ways to keep credit usage lower while building and running in CodeWords.

Keeping costs low starts with how you build.

Most credit usage happens while Cody is actively building, editing, and testing. Once an agent is ready, ongoing run costs are usually much lower.

Best ways to reduce costs

Keep chat threads short

Long chat threads cost more to process. Start a new chat for each new agent or build.

If a thread gets long, continue in a new one. Your context stays available, so Cody still understands what you have been building.

Use one chat per agent when possible. This is the easiest way to keep build costs down.

Ask Cody to optimize for cost

Tell Cody to keep cost in mind before or during a build. This works best when you are starting a new build.

You can ask for:

  • Lower-cost approaches

  • Simpler workflows

  • Fewer unnecessary steps

Use cheaper models when the task allows

Some tasks do not need the most expensive model. Ask Cody whether it can switch to a cheaper model for the same task.

Keep the output quality bar in mind. Use lower-cost models where they still meet your needs.

Expect building to cost more than running

Building usually costs more than ongoing usage. That includes planning, editing, testing, and iterating.

Once your agent is working well, the cost to run it is generally much lower.

Example prompts

Try prompts like:

  • Keep cost in mind while building this.

  • Can you suggest a cheaper way to build this workflow?

  • Can you use a lower-cost model here without reducing output quality too much?

Quick summary

To reduce costs:

  • Start fresh chats often

  • Ask Cody to optimize for cost

  • Use cheaper models when possible

  • Track spend in Usage

Last updated

Was this helpful?