Skip to content

CoStrict Setup Guide

Using CoStrict with Fast-Token

CoStrict is an open-source, practical development tool built on code large models. It provides code completion, intelligent Q&A, code review, code optimization, unit test writing, comment generation, and more.

Install CLI

bash
npm install -g @costrict/cs
  1. After installation succeeds, run cs web in the terminal to open the Web settings page. Click Settings and add a custom provider. Set the API base URL to https://fast-token.com. Get the API Key from the Fast-Token platform.

Open Web settings and add custom provider

Configure custom provider

Enter API base URL and Key

  1. After submitting successfully, press Ctrl + C to stop the current Web command. Run cs again in the terminal, type /models, select the model you just added, and press Enter to start using it.

Select a model

Start using

Use in VS Code

  1. Open VS Code, search for costrict in the Extensions marketplace, and install it.

Install CoStrict extension

  1. Open the costrict extension and choose to use another provider.

Choose another provider

  1. Select OpenAI Compatible from the dropdown list.

Select OpenAI Compatible

  1. Fill in the details: API base URL is https://fast-token.com, API Key from the Fast-Token platform, and model names from the model list.

Enter provider details