nc://bharatcode

v0.1.0Pinned
ThomSharkproviders/nodecode-bharatcode: BharatCode's OpenAI-compatible models as a Nodecode provider, with the account's live model list. - a rewrite of thenabbu/bharatcode-hermes (MIT), credited to thenabbuc1c6038· 9 Nov1 commit
test1 fileprovider.lisp5.5 KB

nodecode-bharatcode

BharatCode: an OpenAI-compatible model provider with a free student tier. A Nodecode rewrite of thenabbu/bharatcode-hermes by thenabbu.

BharatCode serves the OpenAI chat wire at https://bharatcode.ai/api/model/v1 with a bearer key, and its free tier is for students with an .ac.in or .edu.in address. With this cell, /connect offers BharatCode, /models lists its models, and a turn on bharatcode/<model> goes to that base:

  • the picker is the provider's own GET /models, read once at start and again every ten minutes; the two models the original names (deepseek-v4.1-flash, qwen-3.8-27b) are what it offers until the provider has answered
  • every row is marked as taking images, because the original declares the provider vision-capable for all of its models

Get it

Tell the agent "add the bharatcode cell", or run nodecode add nc://bharatcode.

Set it up

Make a key at https://bharatcode.ai (free for students with an .ac.in or .edu.in address) and save it with /connect, or set BHARATCODE_API_KEY. A key saved by /connect wins over the variable.

Then pick BharatCode in /models. Its address is optional, for a relay:

{
  "bharatcode": {
    "base_url": "https://bharatcode.ai/api/model/v1"
  }
}

Use it

Ask for a model and talk as usual. /models lists what the account may use; the list is what the provider last named, so a model that appears after a restart is picked up on the next refresh.

Test

From this repository's root:

.github/test-cell.sh providers/nodecode-bharatcode

MIT licensed. See NOTICE.

Add nc://bharatcode

  1. 1

    Install Nodecode

    Once per machine.

    $ curl -fsSL https://nodecode.ai/install.sh | sh
  2. 2

    Add the cell

    Pinned at c1c6038.

    $ nodecode add nc://bharatcode

    Or tell the agent add the bharatcode cell.