Skip to content

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

BharatCode OpenCode Setup

Windows Setup

  1. Install Node.js LTS from https://nodejs.org/

  2. Open PowerShell.

  3. Install OpenCode:

npm install -g opencode-ai
  1. Create the OpenCode config:
New-Item -ItemType Directory -Force "$env:USERPROFILE\.config\opencode" | Out-Null
@'
{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["bharatcode"]
}
'@ | Set-Content -Encoding UTF8 "$env:USERPROFILE\.config\opencode\opencode.json"
  1. Start OpenCode:
opencode
  1. Inside OpenCode, type:
/connect
  1. Choose Other.

  2. When it asks for provider id, type:

bharatcode
  1. Paste your BharatCode API key.

  2. Test it:

Return only the integer result of 23*19.

The answer should be:

437
  1. To use it in a project:
cd path\to\your\repo
opencode

Linux/macOS Setup

  1. Install Node.js LTS from https://nodejs.org/

  2. Install OpenCode:

npm install -g opencode-ai
  1. Create the OpenCode config:
mkdir -p ~/.config/opencode
cat > ~/.config/opencode/opencode.json <<'JSON'
{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["bharatcode"]
}
JSON
  1. Start OpenCode:
opencode
  1. Inside OpenCode, run /connect, choose Other, enter provider id bharatcode, and paste your BharatCode API key.

  2. Test it:

Return only the integer result of 23*19.

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages