Toolverse
All skills

opencode-cli

by SpillwaveSolutions

This skill should be used when configuring or using the OpenCode CLI for headless LLM automation. Use when the user asks to \

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Category
Data Science
Views
125

About this skill

This skill should be used when configuring or using the OpenCode CLI for headless LLM automation. Use when the user asks to \

How to use

  1. Zainstaluj OpenCode CLI, postępując zgodnie z dokumentacją na opencode.ai. 2. Ustaw zmienne środowiskowe dla wybranego dostawcy — dla Anthropic: export ANTHROPIC_API_KEY="sk-...", dla Google Vertex AI: export GOOGLE_CLOUD_PROJECT="project-id". 3. Zweryfikuj instalację, uruchamiając opencode --version w terminalu. 4. Przetestuj podstawową komendę: opencode run --model google/gemini-2.5-pro "Hello, world" — zastąp provider/model swoim wybranym modelem. 5. Do automatyzacji użyj formatu opencode run --model provider/model "twoje zapytanie" w skryptach bash lub innych narzędziach, które obsługują subprocess. 6. Zapoznaj się z dokumentacją konfiguracji dostawcy (Vertex AI, MCP servers, modele lokalne), aby dostosować ustawienia do swoich potrzeb.

Related skills