Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
SkillOpt/.env.example at main · microsoft/SkillOpt · GitHub
Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
microsoft
/
SkillOpt
Public
Notifications
You must be signed in to change notification settings
Fork
1.6k
Star
16.7k
Code
Issues
20
Pull requests
17
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Files
Expand file tree
main
Breadcrumbs
SkillOpt
/
.env.example
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
72 lines (65 loc) · 3.94 KB
main
Breadcrumbs
SkillOpt
/
.env.example
Copy path
Top
File metadata and controls
Code
Blame
72 lines (65 loc) · 3.94 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#
SkillOpt Environment Variables
#
Copy this file to .env and fill in your values.
#
Usage: set -a; source .env; set +a
#
── Azure OpenAI (required for openai_chat backend) ──────────────────
export
AZURE_OPENAI_ENDPOINT
=
https://your-resource.openai.azure.com/
export
AZURE_OPENAI_API_VERSION
=
2024-12-01-preview
#
Authentication: choose one method
#
Option 1: API Key
export
AZURE_OPENAI_API_KEY
=
export
AZURE_OPENAI_AUTH_MODE
=
api_key
#
Option 2: Azure CLI (no API key needed, recommended on Azure VMs)
#
export AZURE_OPENAI_AUTH_MODE=azure_cli
#
Option 3: Managed Identity
#
export AZURE_OPENAI_AUTH_MODE=managed_identity
#
export AZURE_OPENAI_MANAGED_IDENTITY_CLIENT_ID=your-client-id
#
── OpenAI-compatible endpoints ──────────────────────────────────────
#
Path 1: generic research backend. Select openai_compatible explicitly as
#
model.optimizer_backend and/or model.target_backend.
#
export OPENAI_COMPATIBLE_BASE_URL=https://api.deepseek.com/v1
#
export OPENAI_COMPATIBLE_API_KEY=sk-...
#
export OPENAI_COMPATIBLE_MODEL=deepseek-chat
#
Novita AI (OpenAI-compatible) works the same way:
#
export OPENAI_COMPATIBLE_BASE_URL=https://api.novita.ai/openai/v1
#
export OPENAI_COMPATIBLE_API_KEY=...
#
export OPENAI_COMPATIBLE_MODEL=zai-org/glm-5.2
#
Per-role overrides use OPTIMIZER_OPENAI_COMPATIBLE_* and
#
TARGET_OPENAI_COMPATIBLE_* (BASE_URL, API_KEY, MODEL, TEMPERATURE,
#
MAX_TOKENS, TIMEOUT_SECONDS).
#
For scripts/train.py and scripts/eval_only.py, also set model.optimizer and
#
model.target in YAML (or via --cfg-options). Those role model values are
#
applied after backend initialization and override *_MODEL environment values.
#
Path 2: research openai_chat compatibility mode. This reuses the Azure-family
#
variables but creates a plain OpenAI client (no Azure auth or api-version).
#
export AZURE_OPENAI_ENDPOINT=https://api.openai.com/v1
#
export AZURE_OPENAI_API_KEY=sk-...
#
export AZURE_OPENAI_AUTH_MODE=openai_compatible
#
Path 3: SkillOpt-Sleep. `skillopt-sleep run --backend azure_openai` uses the
#
same three AZURE_* variables from path 2. Optional Sleep-only controls:
#
export SKILLOPT_SLEEP_COMPAT_MAX_TOKENS=8192
#
export SKILLOPT_SLEEP_CHAT_EXTRA_BODY='{"provider_option": true}'
#
── Claude Code CLI (for claude_chat backend) ─────────────────────────
#
Install and authenticate the `claude` CLI before use. For a non-default path:
#
export CLAUDE_CLI_BIN=/path/to/claude
#
ANTHROPIC_API_KEY is one authentication option understood by the CLI; SkillOpt
#
does not create a direct Anthropic API client for this backend.
#
export ANTHROPIC_API_KEY=sk-ant-...
#
── Qwen via an OpenAI-compatible endpoint (qwen_chat backend) ──────
#
export QWEN_CHAT_BASE_URL=http://localhost:8000/v1
#
export QWEN_CHAT_MODEL=Qwen/Qwen3.5-4B
#
Wire policy for chat_template_kwargs.enable_thinking, a vLLM/SGLang
#
extension that OpenAI/Azure and strict gateways reject with HTTP 400:
#
server_default (default) omit the field | enabled | disabled
#
export QWEN_CHAT_THINKING_MODE=disabled
#
The train/eval entry points likewise override this model with
#
model.optimizer/model.target for the selected Qwen roles.
#
── MiniMax (for minimax_chat backend) ──────────────────────────────
#
Pick the service region instead of hardcoding a host: global_en (default)
#
resolves to https://api.minimax.io/v1 and cn_zh resolves to
#
https://api.minimaxi.com/v1. MINIMAX_BASE_URL still overrides the region.
#
export MINIMAX_REGION=global_en
#
export MINIMAX_BASE_URL=https://api.minimax.io/v1
#
export MINIMAX_API_KEY=...
#
When MiniMax is the target, set model.minimax_model in YAML. The current
#
adapter shares one deployment across MiniMax roles; mixed-backend runs cannot
#
independently select a MiniMax optimizer model and a different target model.
You can’t perform that action at this time.