Best-practice guides

From Agent frameworks to AI coding clients — step-by-step recipes to get Starsg running.

Agent·Agent framework📖 8 min read

OpenClaw — Agent framework integration

Use Starsg as the unified inference backend for the OpenClaw Agent framework. Five minutes to integrate.

Coding·CLI assistants📖 6 min read

CLI setup — Claude Code / Codex

Point the Claude Code and Codex CLIs at Starsg so every terminal-based assistant shares one gateway and one billing view.

Prompt·Prompt design📖 10 min read

Prompt engineering best practices

From role setup to iteration — write prompts that are reusable, evaluable and not just one-off magic.

Coding·OpenCode setup📖 5 min read

OpenCode — one config, three providers

Point OpenCode at Starsg and use Claude / GPT / Gemini side by side from one terminal, sharing one key and one usage view.

Coding·AI coding clients📖 10 min read

AI Coding — Cursor / Continue / Cline

Plug Starsg into popular AI coding clients (Cursor, Continue, Cline) and manage every model key and quota in one place.

RAG·Knowledge base RAG📖 15 min read

RAG — retrieval-augmented generation

Combine Embedding + Reranker + Command R+ to power a high-quality enterprise knowledge-base Q&A.

Agent·Multi-agent flows📖 12 min read

Multi-agent collaborative workflows

Orchestrate Claude / GPT and other models together to deliver complex tasks at the lowest cost.

API·Tool use📖 9 min read

Function calling (Tool Use) guide

Structured outputs + Tool Use — how to call tools reliably on Starsg.

Multimodal·Image & document📖 7 min read

Multimodal — images and document understanding

GPT-5o / Gemini 2.5 multimodal templates and image-token billing notes.