Skip to content

vigo999/mindspore-code

Repository files navigation

mscode

AI Infra Agent

Install

One-liner (public mirror)

curl -fsSL http://47.115.175.134/mscode/install.sh | bash

Optional overrides:

# Force one source instead of auto-probing.
MSCODE_INSTALL_SOURCE=github curl -fsSL http://47.115.175.134/mscode/install.sh | bash
MSCODE_INSTALL_SOURCE=mirror curl -fsSL http://47.115.175.134/mscode/install.sh | bash

# Override the mirror base URL if you host your own Caddy/Nginx mirror.
MSCODE_MIRROR_BASE_URL=http://47.115.175.134/mscode/releases curl -fsSL http://47.115.175.134/mscode/install.sh | bash

One-liner (GitHub raw, internal use)

curl -fsSL https://raw.githubusercontent.com/vigo999/mindspore-code/main/scripts/install.sh | bash

Build from source

Requires Go 1.24.2+.

git clone https://github.com/vigo999/mindspore-code.git
cd mindspore-code
go build -o mscode ./cmd/mscode
./mscode

Quick Start

# Set your LLM API key
export MSCODE_API_KEY=sk-...

# Run
mscode

Use OpenAI API

export MSCODE_PROVIDER=openai-completion
export MSCODE_API_KEY=sk-...
export MSCODE_MODEL=gpt-4o-mini
./mscode

If you specifically want the Responses API path, use openai-responses.

Use Anthropic API

export MSCODE_PROVIDER=anthropic
export MSCODE_API_KEY=sk-ant-...
export MSCODE_MODEL=claude-3-5-sonnet
./mscode

Use OpenRouter (OpenAI-compatible third-party routing)

OpenRouter uses an OpenAI-compatible interface, so set provider to openai-completion:

export MSCODE_PROVIDER=openai-completion
export MSCODE_API_KEY=sk-or-...
export MSCODE_BASE_URL=https://openrouter.ai/api/v1
export MSCODE_MODEL=anthropic/claude-3.5-sonnet
./mscode

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors