Skill站外收录 @skilllib/skill-2117939930272415652
station-config
提供 Station CLI 的统一配置管理能力,支持通过浏览器可视化界面或命令行灵活设置 AI 服务、编码后端、CloudShip 集成、服务器端口及遥测等参数,兼顾易用性与精细控制。
效率工具 AI 技能
Skills.MD
# Station Configuration
Configure Station settings including AI provider, coding backend, CloudShip integration, and more.
## Browser-Based Configuration (Recommended)
The easiest way to configure Station is via the browser UI:
```bash
# Opens browser-based config editor
# Automatically starts server if not running
stn config --browser
```
This opens a visual editor with:
- All configuration sections organized
- Conditional fields (e.g., backend-specific settings only show for selected backend)
- Secret fields with show/hide toggle
- Validation and defaults
## CLI Configuration Commands
### View Configuration
```bash
# Show all config (secrets redacted)
stn config show
# Show specific section
stn config show ai
stn config show coding
stn config show cloudship
# Show config file path
stn config path
# Show all available config keys
stn config schema
```
### Set Configuration Values
```bash
# Set a value
stn config set <key> <value>
# Examples
stn config set ai_provider anthropic
stn config set ai_model claude-sonnet-4-20250514
stn config set coding.backend opencode
stn config set cloudship.enabled true
# Set nested values
stn config set coding.nats.url nats://localhost:4222
stn config set cloudship.api_key cst_xxx
# Reset to default
stn config reset <key>
```
### Edit Config File Directly
```bash
# Open in $EDITOR
stn config edit
```
## Configuration Sections
### AI Provider (`ai_*`)
| Key | Description | Default |
|-----|-------------|---------|
| `ai_provider` | Provider: openai, anthropic, ollama, gemini | openai |
| `ai_model` | Model name | gpt-4o |
| `ai_api_key` | API key (secret) | - |
| `ai_base_url` | Custom base URL for OpenAI-compatible | - |
### Coding Backend (`coding.*`)
| Key | Description | Default |
|-----|-------------|---------|
| `coding.backend` | Backend: opencode, opencode-nats, opencode-cli, claudecode | opencode-cli |
| `coding.workspace_base_path` | Base path for workspaces | /tmp/station-coding |
| `coding.max_attempts` | Max retry attempts | 3 |
| `coding.task_timeout_min` | Task timeout in minutes | 30 |
**Backend-specific settings:**
For `opencode`:
- `coding.opencode.url` - OpenCode HTTP server URL
For `opencode-nats`:
- `coding.nats.url` - NATS server URL
- `coding.nats.subjects.task` - Task subject
- `coding.nats.subjects.result` - Result subject
- `coding.nats.subjects.stream` - Stream subject
For `opencode-cli`:
- `coding.cli.binary_path` - Path to opencode binary
- `coding.cli.timeout_sec` - CLI timeout
For `claudecode`:
- `coding.claudecode.binary_path` - Path to claude binary
- `coding.claudecode.timeout_sec` - Timeout
- `coding.claudecode.model` - Model: sonnet, opus, haiku
- `coding.claudecode.max_turns` - Max conversation turns
- `coding.claudecode.allowed_tools` - Tool whitelist
- `coding.claudecode.disallowed_tools` - Tool blacklist
### CloudShip Integration (`cloudship.*`)
| Key | Description | Default |
|-----|-------------|---------|
| `cloudship.enabled` | Enable CloudShip | false |
| `cloudship.api_key` | Personal API key (cst_...) | - |
| `cloudship.registration_key` | Station registration key | - |
| `cloudship.endpoint` | Lighthouse gRPC endpoint | lighthouse.cloudshipai.com:443 |
| `cloudship.use_tls` | Use TLS | true |
| `cloudship.name` | Station name (unique) | - |
| `cloudship.tags` | Tags for filtering | - |
### Server Settings (`api_port`, `mcp_port`, etc.)
| Key | Description | Default |
|-----|-------------|---------|
| `api_port` | API server port | 8585 |
| `mcp_port` | MCP server port | 8586 |
| `debug` | Debug mode | false |
| `workspace` | Custom workspace path | - |
### Other Sections
- **Telemetry** (`telemetry.*`) - Tracing/observability settings
- **Sandbox** (`sandbox.*`) - Code execution sandbox settings
- **Webhook** (`webhook.*`) - Webhook endpoint settings
- **Notifications** (`notifications.*`, `notify.*`) - Alert/notification settings
## Common Workflows
### Initial Setup
```bash
# Configure AI provider
stn config set ai_provider anthropic
stn config set ai_model claude-sonnet-4-20250514
# Or use browser for full setup
stn config --browser
```
### Connect to CloudShip
```bash
stn config set cloudship.enabled true
stn config set cloudship.api_key cst_your_api_key
stn config set cloudship.registration_key your_reg_key
stn config set cloudship.name my-station
```
### Change Coding Backend
```bash
# Switch to OpenCode with NATS
stn config set coding.backend opencode-nats
stn config set coding.nats.url nats://localhost:4222
# Or use Claude Code
stn config set coding.backend claudecode
stn config set coding.claudecode.model opus
```
## Config File Location
Default: `~/.config/station/config.yaml`
Override with `--config` flag or `STN_CONFIG` environment variable.
评论 0
还没有评论,来抢沙发。
相关内容
同类或同场景的收录内容
building-with-kafka-strimzi
在 Kubernetes 上构建基于 Apache Kafka 的事件驱动系统,支持高可靠的消息传递、事务性处理与精确一次语义,结合 Strimzi 运营商实现集群自动化管理,利用 Schema Registry 保障事件模式演进,适用于微服务间解耦通信与实时数据流处理场景。
站外数据与分析
609 0.0
personal-tool-builder
专注于从个人真实痛点出发快速构建实用工具,涵盖命令行程序、本地优先应用和自动化脚本的开发与演进,强调先满足自身需求再逐步扩展,通过持续自用打磨功能,避免过度设计,确保工具简洁有效且长期可维护。
站外商业与营销
196 0.0
threejs-lighting
实现三维场景中的光照与阴影控制,支持多种光源类型及环境光照明,提供从基础布光到高级阴影优化的完整方案,适用于需要真实感渲染或性能平衡的可视化项目。
站外效率工具
442 0.0
aggregation-helper
提供数据聚合场景的自动化辅助能力,涵盖 SQL 查询编写、统计分析建模、可视化方案设计及商业智能配置,支持从需求理解到生产级代码生成的全流程指导。
站外效率工具数据与分析
217 0.0
举报「station-config」
举报信息仅审核团队可见,同一资产 24 小时内仅可举报一次