Skip to content

Instantly share code, notes, and snippets.

@vedang
Created December 23, 2025 05:58
Show Gist options
  • Select an option

  • Save vedang/44ad2ae13f5ad79ce0523304bfc514b1 to your computer and use it in GitHub Desktop.

Select an option

Save vedang/44ad2ae13f5ad79ce0523304bfc514b1 to your computer and use it in GitHub Desktop.
Using shell_sage with Cerebras

It took me longer than I'd like to admit, to figure out how to get shell_sage to work with Cerebras.

The main problem was that the conf file is in INI format, which means that quoting the model does not work. The quote is treated as part of the name of the model, and this causes the configuration to fail. The error message is not helpful when it comes to figuring this out.

[DEFAULT]
model = cerebras/zai-glm-4.6
mode = sassy
api_base = https://api.cerebras.ai/v1
history_lines = -1
code_theme = monokai
code_lexer = python
log = True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment