deepseek-web2api-free: Instructions file for Codex

AGENTS.md

deepseek-web2api-free AGENTS.md is an instructions file for Codex, OpenCode from snake-aabb-wtf/deepseek-web2api-free. It costs 42,157 tokens per session, scanned C, original, Unlicense.

Maintenance instructions for a DeepSeek Chat API proxy, a service that forwards chat requests to DeepSeek. They document its code structure, account handling, request limits, and recent changes.

In plain words
What is it for?
Use them when maintaining the proxy, changing request handling, configuring account pools, or investigating concurrency and session behavior.
Why use it?
They help coding agents understand the service’s design and safety constraints before modifying it.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions Claude Code; mentions AGENTS.md; mentions Codex.

This is snake-aabb-wtf/deepseek-web2api-free's own configuration. It tells Codex and OpenCode how to work on deepseek-web2api-free itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything deepseek-web2api-free configures →

Reuse

Borrowing it

Nothing to install: this file belongs to snake-aabb-wtf/deepseek-web2api-free. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/snake-aabb-wtf/deepseek-web2api-free/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/snake-aabb-wtf/deepseek-web2api-free

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for deepseek-web2api-free AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/snake-aabb-wtf/deepseek-web2api-free/agents-md/github.svg)](https://agentmods.dev/instructions/snake-aabb-wtf/deepseek-web2api-free/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/snake-aabb-wtf/deepseek-web2api-free/agents-md"><img src="https://agentmods.dev/badge/instructions/snake-aabb-wtf/deepseek-web2api-free/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for deepseek-web2api-free AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/snake-aabb-wtf/deepseek-web2api-free/agents-md"><img src="https://agentmods.dev/badge/instructions/snake-aabb-wtf/deepseek-web2api-free/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42,157 This file is loaded in full into every session.
When invoked 42,157 The same file — it is already loaded in full.
Security scan C 3 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.42157 $0.42157
Opus 5.5 $0.16863 $0.16863
Sonnet 5.5 $0.08431 $0.08431
Haiku 4.5 $0.04216 $0.04216

Measured 9d ago against content hash 5effd1dfb67c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

deepseek-web2api-free AGENTS.md scanned grade C with 3 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

curl -s -X POST ... -d '{"messages":[{"role":"user","content":"你好"}],"stream":true}'

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- 该文件**必须** `chmod 600`、所在目录 `700`。含明文 DeepSeek token+cookie,泄露=账号被滥用。

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl http://localhost:8080/health
AGENTS.md · 2,750 lines

How it starts

The opening of the file, as written. The whole thing — 2,750 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md — DeepSeek Chat API Proxy (Preview)

当前发布版本:v4.1.5。中文变更与升级说明见 docs/release-notes/v4.1.5.md。FastAPI、管理接口及 WebUI 包元信息已同步为 4.1.5;下文旧版本记录保留历史版本号。

Responses API(2026-10-27)

  • 工具解析兼容 <|DSML|...> 与全角竖线 <|DSML|...>,wrapper 支持 tool_calls / tool_call / calls;parameter string="true" 保持字符串类型和内容。tool_dsml.tool_block_end 提供跳过 CDATA 的原文批次终点,StreamSieve 据此等整批闭合再发布,并保留后续正文。不得全局替换命令正文中的字符。复现截图格式的回归见 tests/test_dsml_variants.py;真实 CLI 变体验收使用 scripts/verify_codex_responses.py --dsml-variant --cli <可执行文件>。

  • Anthropic 非流式正文按是否存在 tool_calls 选择 cleaned 或原始 content,不能使用 cleaned or content,否则纯工具响应会回填原始标签。tests/test_tool_protocol_routes.py 覆盖三个端点的流式/非流式六条路由及纯工具、正文混合工具、普通回答的正文选择。

  • DSML 起始识别与批次闭合共用 [||]+ 分隔符规则;逐字符输入时须保留尚未完整到达的重复竖线前缀,并受现有缓冲上限约束。不能只在完整文本解析器放宽语法,否则 SSE 会先泄漏正文。重复分隔符回归见 tests/test_dsml_repeated_separators.py,路由矩阵覆盖三个端点的单/双/混合竖线。

  • /v1/responses POST + /{id} GET/DELETE 由 responses_routes.py 组合注入的运行时依赖,不通过 HTTP 转调聊天补全,不导入 server。

  • chat_service.py / chat_types.py 提供协议无关的 prompt、执行结果与事件;chat_runtime.py 共用取消安全的线程与账号生命周期。原四条聊天路径复用这些基础能力。

  • responses_format.py 管理受支持的 Items、函数 schema 校验和 Response;responses_stream.py 管理带序号、稳定 ID/索引的 Responses SSE;response_store.py 管理有界、调用方隔离的不可变增量快照。

  • responses_compat.py 在请求边界消费有界的 Codex 缓存/客户端元数据及 reasoning/include/verbosity 提示;不进入 prompt、日志或快照,不改变调用方身份、服务端思考策略,也不伪造加密状态。未知功能参数仍严格拒绝。可选真实 CLI 验收见 scripts/verify_codex_responses.py,工具范围及限制以 Responses 文档为准。

  • previous_response_id 重建所属分支,在原账号/凭证上创建全新会话并重放历史图片引用;不要直接复用可变 SESSION_CACHE,否则会污染分支或继承已替换的 instructions。

  • 状态只存内存,祖先删除/过期/回收可能使子链无法续聊;不保存原始图片或凭证。默认限制、SDK 示例和明确不支持的参数见 Responses 文档。

  • 第二阶段:responses_tools.py 管理 strict 规范化/有效定义/批次校验;显式 parallel_tool_calls=true 支持最多64次调用,默认false。所有待解决结果按 call_id 关联并须完整提供;完整 DSML 批次在发出函数 Item 之前整体校验。

  • execution_observer.py 是通用可选计时回调,responses_observability.py 仅投影白名单诊断字段;共享准备链不得导入 Responses。错误由 responses_errors 统一分类并投影为 SDK 可解析的 SSE code。

  • python scripts/run_responses_compat.py --require-all 在回环 uvicorn 服务上验证 Python sync/async 与 JS SDK,fixture 仅替换上游并保留实际池/状态/parser;测试依赖与 WebUI 隔离,Node/驱动缺失不能跳过。实际 HAR 只用于临时实时验收,禁止进入 fixtures/CI。

Read the full file on GitHub · 2,750 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago Changed · +31 lines · +1,562 tokens per session 5effd1dfb67c
  2. 10d ago Changed · -44 lines · -51 tokens per session d9a26450ef02
  3. 19d ago Changed · +106 lines · +6,468 tokens per session b3b38675cabb
  4. 26d ago Changed · +12 tokens per session 983660cd240c
  5. 1mo ago Changed · -6 lines · -308 tokens per session a5fd525a67c8
  6. 1mo ago Changed · -1 lines · +52 tokens per session 3ca053077a54
  7. 1mo ago Changed · +91 tokens per session 3b321444fb70
  8. 1mo ago Changed · +11 lines · +255 tokens per session f403d5993687
  9. 2mo ago Changed · +5 lines · +240 tokens per session ac5d4aacb84e
  10. 2mo ago First seen · 2,648 lines · 33,836 tokens per session scan C 57080e8cfe08

Subscribe to this mod's changes

deepseek-web2api-free AGENTS.md is an instructions file published in the GitHub repository snake-aabb-wtf/deepseek-web2api-free (218 stars, last pushed 9d ago), licensed Unlicense. It adds 42,157 tokens to every session, about $0.1686 per session on Opus 5.5. A static security scan graded it C with 3 findings (sends data to an external url, asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

deepseek-web2api-free AGENTS.md compared with instructions from other repositories

deepseek-web2api-free AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
deepseek-web2api-free AGENTS.mdsnake-aabb-wtf/deepseek-web2api-freeInstructions file2189d agoUnlicenseC42,157Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode