Editor & Tool Configuration

Costrict Configuration Guide

Configure the open-source coding tool CoStrict with AnyRouter: install the CLI, add a custom provider via cs web, or use OpenAI Compatible in VS Code.

CoStrict is an open-source, practical coding tool built on code LLMs, offering code completion, intelligent Q&A, code review, code optimization, unit test writing, comment generation, and more.

Install the CLI

npm install -g @costrict/cs
  1. After installation, run cs web in the terminal to open the web settings page, then click Settings and add a custom provider
  1. After submitting successfully, press Control + C to stop the current web command, then run cs in the terminal again, type /models to select the model you just added, and press Enter to start using it

Using it in VS Code

  1. Open VS Code, search for costrict in the extension marketplace, and install it
  1. Open the costrict extension and choose to use another provider
  1. Select OpenAI Compatible from the dropdown list
  1. Fill in the required information

On this page