Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
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 }}
free6589
Agent2API
Repository navigation
Code
Pull requests
2
(2)
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
Agent2API
/
.env.example
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
19 lines (15 loc) · 1.06 KB
main
Breadcrumbs
Agent2API
/
.env.example
Copy path
Top
File metadata and controls
Code
Blame
19 lines (15 loc) · 1.06 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
# Agent2API 部署配置(docker compose 自动读取本文件)。
# 全部留空即可正常部署:启动后打开面板,首次会提示注册管理员账号。
# 面板管理员:留空 = 启动后在面板注册(推荐);填了 = 跳过注册,用这里的账号登录。
AGENT2API_ADMIN_USER=
# 密码直接填明文(启动时自动转成 bcrypt 哈希,库里只存哈希)。
AGENT2API_ADMIN_PASSWORD=
# 面板分端口:留空 = 面板与网关同端口;填了(如 3066)= 面板单独监听该端口,
# 主端口只保留 /v1 网关 —— 公网只映射主端口,即可把面板留在内网。
AGENT2API_PANEL_PORT=
# 登录页人机验证组件环境变量,默认为1开启,0为关闭
AGENT2API_CAPTCHA_ENABLED=1
# 容器内更新:默认 1 开启 —— 面板「设置 → 软件更新」里可以直接下载新版本并
# 原地替换容器内的程序与界面(替换后重启服务,容器由 restart 策略拉起)。
# 置 0 关闭该入口,之后只能按 README「升级」一节手动升级。
AGENT2API_SELF_UPDATE=1
You can’t perform that action at this time.