huggingface/safeagents
Safely run your agents using any coding harness
https://skillcdn.ai/gh/huggingface/safeagentsConnect this address to your AI to use these skills. How to connect
- Unverified
- Default branch
main - Commit
fbc06c7 - License
Apache-2.0 - Searchwords
Explore this repository
Searches the original text of skills and documents, and the translations of skills when you search in their language.
For every command and option, see commands.md.
Documents
- Using safeagents with coding agentsFor every command and option, see commands.md.docs/README.md
- Claude CodeStatus: supported (Anthropic Messages, JSON and streaming) Checked against Claude Code v2.1.304.docs/claude-code.md
- ClineStatus: supported through the Anthropic provider with a custom base URL, or the OpenAI Compatible provider. Checked against Cline v4.1.25.docs/cline.md
- Codex CLIStatus: not supported yet. Codex only speaks the OpenAI Responses API, which safeagents doesn't handle. Checked against Codex rust-v0.163.0.docs/codex.md
- Commands and optionsURL is the model server your agent normally talks to. PORT is where the proxy listens (default 8787, on 127.0.0.1), or a full address such as 0.0.0.0:8080.docs/commands.md
- GitHub Copilot (VS Code agent)Status: supported for bring-your-own-key (BYOK) models only, through the Custom Endpoint provider (Anthropic Messages or OpenAI Chat Completions). Checked against VS Code 1.142.0.docs/copilot-vscode.md
- DeepSeek Harness (dsh)Status: supported with an API key, through the native DeepSeek adapter (Anthropic Messages) or the pi-ai adapter (Anthropic Messages or OpenAI Chat Completions). Checked against dsh dsh-v0.2.1-rc.2.docs/deepseek-harness.md
- Gemini CLIStatus: not supported. Gemini CLI only speaks the Gemini API, which safeagents doesn't handle. Checked against Gemini CLI v0.64.0.docs/gemini-cli.md
- Hermes AgentStatus: supported through the anthropic provider or named providers with transport: anthropic_messages or transport: chat_completions. Checked against Hermes Agent v0.22.2.docs/hermes-agent.md
- Journal formatsafeagents appends every call it doesn't pass to ~/.safeagents/calls.jsonl (--journal PATH changes the path and --no-journal turns it off). Each line is one JSON object.docs/journal.md
- Mistral VibeStatus: supported with the mistral backend (OpenAI Chat Completions through the Mistral SDK), or with a generic provider whose api_style is openai (Chat Completions) or anthropic (Anthropic Messages)…docs/mistral-vibe.md
- OMP (oh-my-pi)Status: supported for providers that use the anthropic-messages or openai-completions API. Checked against OMP v19.1.1 (@oh-my-pi/pi-coding-agent, the omp CLI). OMP is a fork of pi and needs Bun ≥ 1.…docs/omp.md
- OpenClawStatus: supported through custom providers with api: "anthropic-messages" or api: "openai-completions". Checked against OpenClaw v2026.10.5.docs/openclaw.md
- OpenCodeStatus: supported on OpenCode 2.x and 1.x, through the anthropic provider (Anthropic Messages) or an OpenAI-compatible provider (OpenAI Chat Completions). Checked against OpenCode v2.3.0 and v1.19.3.docs/opencode.md
- OpenHandsStatus: supported with anthropic/ models (Anthropic Messages) or openai/ models forced onto Chat Completions. Checked against the OpenHands Software Agent SDK v1.56.0, which requires LiteLLM >=1.93.0…docs/openhands.md
- OpenRouterOpenRouter is a model server, not a harness: any harness on this list that can talk to an OpenAI-compatible server can reach OpenRouter through safeagents. safeagents guards OpenRouter's Chat Complet…docs/openrouter.md
- piStatus: supported for providers that use the anthropic-messages or openai-completions API. Checked against pi v1.3.0.docs/pi.md
- Qwen CodeStatus: supported with the openai auth type (OpenAI Chat Completions). The anthropic auth type works only with gateways that accept bearer-token auth; see below. Checked against Qwen Code v0.25.3.docs/qwen-code.md
- Optional event sinksA tool call withheld by the proxy never reaches the harness's execution hooks. A sink can report that attempted call to an audit system without polling the journal. It receives blocked, flagged and s…docs/sink.md