Fungsi Galaksi provider plugin for opencode - 80+ models with OpenAI-compatible API
npm install opencode-fungsi-galaksiFungsi Galaksi provider plugin for opencode - 80+ models with OpenAI-compatible API
- 80+ models from 11 providers (Anthropic, OpenAI, Google, X-AI, DeepSeek, MistralAI, MiniMax, MoonshotAI, NVIDIA, NousResearch, Qwen, Z-AI)
- OpenAI-compatible API - seamless integration with opencode
- Zero configuration - plugin injects provider automatically
- Environment variable API key - secure credential management
1. Add plugin to opencode config:
Add opencode-fungsi-galaksi to your ~/.config/opencode/opencode.json:
``json`
{
"plugin": [
"opencode-fungsi-galaksi"
]
}
The plugin will be automatically installed from npm when you start opencode.
2. Set environment variable:
`bash`
export GALAKSI_API_KEY="sk_galaksi_xxx"
Add to your shell profile (~/.zshrc or ~/.bashrc):
`bash`
echo 'export GALAKSI_API_KEY="sk_galaksi_xxx"' >> ~/.zshrc
source ~/.zshrc
3. Restart opencode:
`bash`
opencode restart
#### Using Command Line
`bash`
opencode run "write hello world to test.txt" --model=galaksi/anthropic/claude-sonnet-4
#### Using TUI
1. Launch opencode: opencodeCtrl+M
2. Press model selector keybind (default: )
3. Search for "galaksi" or specific model names
4. Select desired model
#### Popular Models
| Model | Name | Context | Best For |
|--------|-------|----------|-----------|
| galaksi/anthropic/claude-sonnet-4 | Claude Sonnet 4 | 200K | General coding, reasoning |galaksi/openai/gpt-5.1-codex
| | GPT 5.1 Codex | 400K | Advanced coding |galaksi/google/gemini-2.5-pro
| | Gemini 2.5 Pro | 1,048K | Multimodal tasks |galaksi/x-ai/grok-4-fast
| | Grok 4 Fast | 2,000K | Fast responses |
See MODELS.md for complete catalog of all 80+ models with detailed specifications.
- Anthropic: Claude 3.5-4.5 family (7 models)
- OpenAI: GPT-4.1, GPT-5.x, GPT-OSS (18 models)
- Google: Gemini 2.0-3.0 family (12 models)
- X-AI: Grok 3-4 family (7 models)
- DeepSeek: V3.1-V3.2 family (4 models)
- MistralAI: Devstral, Codestral (6 models)
- MiniMax: M1-M2, MiniMax-01 (3 models)
- MoonshotAI: Kimi K2 family (4 models)
- NVIDIA: Nemotron (1 model)
- NousResearch: Hermes 4 (2 models)
- Qwen: Qwen3 family (9 models)
- Z-AI: GLM 4.5-4.6 family (5 models)
| Variable | Required | Description |
|-----------|------------|-------------|
| GALAKSI_API_KEY | Yes | Your Fungsi Galaksi API key |
Add to ~/.config/opencode/opencode.json:
`json`
{
"permission": {
"external_directory": {
"~/Projects/*": "allow",
"~/.config/*": "allow",
"*": "ask"
}
}
}
`bash`
cd ~/.config/opencode/plugin/opencode-fungsi-galaksi
npm install
npm run build
`bash``
npm run typecheck
MIT
byfungsi
- GitHub Repository
- Fungsi Galaksi API
- OpenCode Documentation
- Plugin Documentation