BSE_Code 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global BSE_Code --version 1.0.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local BSE_Code --version 1.0.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=BSE_Code&version=1.0.0
                    
nuke :add-package BSE_Code --version 1.0.0
                    

BSE_Code

An AI coding assistant CLI powered by an LLM via OpenRouter. It understands your prompts and can read files, write files, and run shell commands on your behalf.


Prerequisites


Setup

1. Clone the repo

git clone <repo-url>
cd <repo-folder>

2. Set your API key

On Linux/macOS:

export OPENROUTER_API_KEY="your-key-here"

On Windows (PowerShell):

$env:OPENROUTER_API_KEY="your-key-here"

To persist it, add the export line to your ~/.bashrc, ~/.zshrc, or Windows Environment Variables.

3. Pack

dotnet pack BSE_Code.csproj -c Release -o ./nupkg

4. Install globally

dotnet tool install --global --add-source ./nupkg BSE_Code

To update after a code change: bump <Version> in the csproj, repack, then:

dotnet tool update --global --add-source ./nupkg BSE_Code

Usage

Once installed, run from anywhere:

bse-code -p "<your prompt>"

Examples

Ask a question:

./your_program.sh -p "Explain what this codebase does"

Read a file:

./your_program.sh -p "Read src/Program.cs and summarize it"

Write a file:

./your_program.sh -p "Create a hello world C# file at hello.cs"

Run a shell command:

./your_program.sh -p "List all .cs files in the project using Bash"

Available Tools

Tool Description
read_file Reads the contents of a file
Write Writes content to a file
Bash Executes a shell command

Configuration

Environment Variable Required Default Description
OPENROUTER_API_KEY Yes Your OpenRouter API key
OPENROUTER_BASE_URL No https://openrouter.ai/api/v1 Override the API base URL

The model used is z-ai/glm-4.5-air:free (free tier on OpenRouter).

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
1.6.0 82 4/25/2026
1.5.0 78 4/25/2026
1.4.0 86 4/24/2026
1.3.0 96 4/24/2026
1.2.0 89 4/24/2026
1.1.0 88 4/24/2026
1.0.0 94 4/24/2026