voicegateway AGENTS.md

voicegateway AGENTS.md is an instructions file for Codex, OpenCode from mahimailabs/voicegateway. It costs 1,205 tokens per session, scanned A, original, MIT.

Repository instructions for VoiceGateway, a project that tracks and reconciles the cost of speech-to-text, language-model, and text-to-speech services used by voice agents. They describe installation, tests, command-line tools, and the project structure.

In plain words
What is it for?
Use them when installing VoiceGateway with development dependencies, running all or selected tests, creating configuration, starting its HTTP service, or opening its dashboard.
Why use it?
They give a coding agent the commands and project context needed to work consistently in the repository.

Instructions file for CodexOpenCode

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

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/mahimailabs/voicegateway/agents-md
Clone the repo
git clone --depth 1 https://github.com/mahimailabs/voicegateway

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 voicegateway AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/mahimailabs/voicegateway/agents-md.svg)](https://agentmods.dev/instructions/mahimailabs/voicegateway/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/mahimailabs/voicegateway/agents-md"><img src="https://agentmods.dev/badge/instructions/mahimailabs/voicegateway/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,205 This file is loaded in full into every session.
When invoked 1,205 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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.01205 $0.01205
Opus 5 $0.00602 $0.00602
Sonnet 5 $0.00241 $0.00241
Haiku 4.5 $0.00120 $0.00120

Measured 6d ago against content hash c1528fc11d3a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

voicegateway AGENTS.md scanned grade A with 0 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 6d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 68 lines

How it starts

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

AGENTS.md

This file provides guidance to Codex (Codex.ai/code) when working with code in this repository.

Project

VoiceGateway: cost tracking and reconciliation for voice agents on LiveKit, Pipecat and OpenRTC. Meters the native STT, LLM, and TTS instances you pass to attach() / guard() across cloud providers (OpenAI, Deepgram, Anthropic, Groq, Cartesia, ElevenLabs, AssemblyAI) and local models (Whisper, Kokoro, Piper). LLM, STT, and TTS prices all flow through voice-prices (a fork of pydantic/genai-prices). Ships voicegw reconcile for verifying recorded numbers against provider invoices, plus per-modality cost tracking, resolver-time fallback chains, rate limiting, and a web dashboard.

Commands

# Install (editable, with dev dependencies)
pip install -e ".[dev]"

# Run tests
pytest
pytest src/voicegateway/tests/core/test_config.py              # single file
pytest src/voicegateway/tests/core/test_config.py::test_name   # single test
pytest --cov                                                   # with coverage

# CLI
voicegw init                             # create config template
voicegw serve --port 8080                # start HTTP API
voicegw dashboard                        # start web UI (port 9090)
voicegw status                           # show provider status

# Dashboard frontend (src/dashboard/frontend/)
npm install && npm run dev               # dev server
npm run build                            # production build

# Docker
docker compose up -d                     # API + Dashboard
docker compose --profile local up -d     # + Ollama

Architecture

Request flow: User code → Gateway.stt()/llm()/tts() → Router → Provider → Middleware pipeline (cost tracking, latency, rate limiting, fallback) → SQLite storage → Dashboard reads stored data.

Core (src/voicegateway/core/):

  • gateway.py — Main orchestrator, entry point for all requests
  • config.py — YAML parser with ${ENV_VAR} substitution
  • router.py — Resolves provider/model strings to provider instances
  • registry.py — Lazy provider factory (instantiates on first use)
  • model_id.py — Parses provider/model format strings

Read the full file on GitHub · 68 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. 6d ago First seen · 68 lines · 1,205 tokens per session scan A c1528fc11d3a

Subscribe to this mod's changes

voicegateway AGENTS.md is an instructions file published in the GitHub repository mahimailabs/voicegateway (49 stars, last pushed 3d ago), licensed MIT. It adds 1,205 tokens to every session, about $0.0060 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.