Open source voice AI platform. Self-hosted alternative to Vapi and Retell. On Prem, BYOK across Speech to Speech or LLM/STT/TTS, with a visual workflow builder, MCP native and telephony support. https://app.dograh.com
Find a file
developer603 8a4a2e25db
feat: allow overriding base URL of OpenAI STT and TTS (#377)
Mirrors the LLM treatment from #368 for the OpenAI STT and OpenAI TTS
providers. Users running OpenAI-compatible self-hosted services (vLLM,
Speaches, llama.cpp, custom proxies) can now point Dograh at them via
the OpenAI provider with `base_url`, instead of being forced onto the
Speaches provider as a workaround.

Changes:

* `registry.py` — add `base_url` field (default `https://api.openai.com/v1`)
  to `OpenAISTTConfiguration` and `OpenAITTSService`, identical in shape
  to the existing `OpenAILLMService.base_url` from #368.

* `service_factory.py` — in the OPENAI branches of `create_stt_service`
  and `create_tts_service`, lift `base_url` off the user config, run it
  through `_validate_runtime_service_url`, and forward it as a kwarg to
  `OpenAISTTService` / `OpenAITTSService` (both already accept it). Same
  pattern as the LLM branch.

* `test_user_configured_service_url_security.py` — adds four runtime
  validation tests covering private-IP rejection and localhost rejection
  in SaaS mode for both STT and TTS. Existing OSS-mode permissiveness
  is unchanged (DEPLOYMENT_MODE=oss skips the validator, as before).

No schema migration needed — Pydantic populates the default; existing
configurations without `base_url` continue to talk to api.openai.com.

`check_validity.py` requires no edits because the per-service validation
loop already iterates `("base_url", "endpoint")` via `getattr`, and the
`_check_openai_api_key` dispatcher already routes OPENAI providers
through the base_url-aware code path (introduced in #368) for STT and
TTS too.

Tests pass locally:

    pytest api/tests/test_user_configured_service_url_security.py
    23 passed in 4.80s   (19 existing + 4 new)

Co-authored-by: developer603 <developer603@users.noreply.github.com>
2026-06-02 12:06:58 +05:30
.agents/skills feat: add Review AGENTS.md Skill 2026-05-20 16:20:07 +05:30
.devcontainer feat: add transcript and recording public URLs in API 2026-05-26 15:11:56 +05:30
.github fix: speed up multi arch build (#372) 2026-05-28 13:43:33 +05:30
.vscode feat: add devcontainer based setup (#352) 2026-05-25 20:44:22 +05:30
api feat: allow overriding base URL of OpenAI STT and TTS (#377) 2026-06-02 12:06:58 +05:30
config/coturn feat: add coturn configurations (#143) 2026-02-03 13:52:50 +05:30
deploy/templates chore: refactor setup scrpts (#288) 2026-05-14 14:45:34 +05:30
docs fix: support object and array parameters in custom HTTP tools (#373) 2026-06-02 11:35:38 +05:30
evals chore: upgrade Next.js in evals/visualizer from 16.1.4 to 16.2.6 (#361) 2026-05-27 14:26:08 +05:30
examples feat: add examples to create workflow and use sdk 2026-04-24 14:09:24 +05:30
nginx feat: add rolling updates for production deployment (#175) 2026-03-02 14:44:04 +05:30
pipecat@228324a146 fix: fix rtf logs and gemini live turn taking 2026-05-31 16:05:03 +05:30
scripts chore: release sdks 2026-05-31 17:13:42 +05:30
sdk fix: support object and array parameters in custom HTTP tools (#373) 2026-06-02 11:35:38 +05:30
ui fix: support object and array parameters in custom HTTP tools (#373) 2026-06-02 11:35:38 +05:30
.dockerignore fix: speed up multi arch build (#372) 2026-05-28 13:43:33 +05:30
.gitignore feat: add devcontainer based setup (#352) 2026-05-25 20:44:22 +05:30
.gitmodules refactor: change pipecat to submodule & add github alerts 2025-09-29 18:17:04 +05:30
.nvmrc Chore/add setup and contributing docs (#90) 2025-12-27 09:25:20 +05:30
.python-version feat: add devcontainer based setup (#352) 2026-05-25 20:44:22 +05:30
.release-please-manifest.json chore(main): release dograh 1.33.0 (#376) 2026-05-31 13:22:18 +05:30
AGENTS.md feat: add Review AGENTS.md Skill 2026-05-20 16:20:07 +05:30
CHANGELOG.md chore(main): release dograh 1.33.0 (#376) 2026-05-31 13:22:18 +05:30
CLAUDE.md Chore/add setup and contributing docs (#90) 2025-12-27 09:25:20 +05:30
CONTRIBUTING.md feat: banner if API is not reachable 2026-05-31 13:05:22 +05:30
docker-compose-local.yaml chore: update setup docs 2026-05-12 14:25:34 +05:30
docker-compose.yaml fix: abort docker compose when OSS_JWT_SECRET is unset (#356) 2026-05-27 16:51:20 +05:30
LICENSE feat: add README, LICENSE, CONTRIBUTING 2025-09-10 09:20:38 +05:30
PRIVATE_DEPLOYMENT_PLAN.md feat: add transcript and recording public URLs in API 2026-05-26 15:11:56 +05:30
README.md Update README.md 2026-05-31 09:18:33 +05:30
README.zh-CN.md feat: banner if API is not reachable 2026-05-31 13:05:22 +05:30
release-please-config.json fix: fix release please 2026-01-23 19:09:57 +05:30
remote_up.sh fix(webRTC): LAN IP filtering (#333) 2026-05-21 07:28:43 +05:30
SECURITY.md feat: add more issue templates 2025-09-30 15:05:06 +05:30

Dograh AI

The open-source, self-hostable alternative to Vapi & Retell — build production voice agents with a drag-and-drop workflow builder. From zero to a working bot in under 2 minutes.

Try the Cloud   Self-host in 60s   Join Slack

📖 Docs  ·  📜 BSD 2-Clause  ·  🌐 中文

Dograh in action — build a workflow, launch a voice agent, talk to it

  • 100% open source, self-hostable — no vendor lock-in, unlike Vapi or Retell
  • Full control & transparency — every line of code is open, with flexible LLM / TTS / STT integration
  • Maintained by YC alumni and exit founders, committed to keeping voice AI open

dograh-hq%2Fdograh | Trendshift

Dograh featured by Better Stack
Featured by Better Stack — a hands-on look at Dograh
📺 Prefer a 2-minute product walkthrough? Click here.

⚖️ Dograh vs Vapi vs Retell

An honest comparison on the axes that matter most to teams evaluating voice AI platforms.

Dograh Vapi Retell
License BSD 2-Clause (open source) Proprietary Proprietary
Self-hostable Yes — one Docker command SaaS only SaaS only
Pricing Free (self-host) · usage-based (cloud) Per-minute SaaS Per-minute SaaS
Bring your own LLM / STT / TTS Any provider, or use Dograh's stack Configurable within their integrations Configurable within their integrations
Source-level customization Every line is yours to modify Closed source Closed source
Data residency Your infra, your rules Their cloud Their cloud
Vendor lock-in None Full Full

🚀 Get Started

Download and setup Dograh on your Local Machine

Note

We collect anonymous usage data to improve the product. You can opt out by setting the ENABLE_TELEMETRY to false in the below command.

Note

If you wish to run the platform on a remote server instead, checkout our Documentation

curl -o docker-compose.yaml https://raw.githubusercontent.com/dograh-hq/dograh/main/docker-compose.yaml && REGISTRY=ghcr.io/dograh-hq ENABLE_TELEMETRY=true docker compose up --pull always

Note

First startup may take 2-3 minutes to download all images. Once running, open http://localhost:3010 to create your first AI voice assistant! For common issues and solutions, see 🔧 Troubleshooting.

🎙️ Your First Voice Bot

  1. Open http://localhost:3010 in your browser.
  2. Pick Inbound or Outbound, name your bot (e.g. Lead Qualification), and describe the use case in 510 words (e.g. Screen insurance form submissions for purchase intent).
  3. Click Web Call — you're talking to your bot.

🔑 No API keys needed. Dograh ships with auto-generated keys and its own LLM / TTS / STT stack. Connect your own keys for LLM, TTS, STT, or Telephony (e.g. Twilio, Vonage, Telnyx) anytime.

Features

Voice Capabilities

  • Telephony: Built-in telephony integration like Twilio, Vonage, Vobiz, Cloudonix (easily add others), with support for transferring calls to human agents
  • Languages: English support (expandable to other languages)
  • Custom Models: Bring your own TTS/STT models
  • Real-time Processing: Low-latency voice interactions

Developer Experience

  • Zero Config Start: Auto-generated API keys for instant testing
  • Python-Based: Built on Python for easy customization
  • Docker-First: Containerized for consistent deployments
  • Modular Architecture: Swap components as needed

Testing & Quality

  • Test Mode: Try your agent end-to-end before publishing, with no production calls or data affected
  • In-Dashboard Web Calls: Talk to your bot directly while building — no telephony setup required
  • QA Node: A built-in workflow node that analyzes prompt quality across your other nodes

Deployment Options

Local Development

Refer Local Setup

Self-Hosted Deployment

For detailed deployment instructions including remote server setup with HTTPS, see our Docker Deployment Guide.

Cloud Version

Visit https://www.dograh.com for our managed cloud offering.

📚Documentation

You can go to https://docs.dograh.com for our documentation.

📦 SDKs

🤝Community & Support

👋 Coming from the Better Stack video? Drop your use case in our pinned GitHub Discussion — we read every reply and the founders personally onboard early adopters.

  • Slack — the cornerstone of Dograh AI contributions. Connect with maintainers, discuss features before coding, get help with setup, and stay current on contribution sprints.
  • GitHub Discussions — share use cases, ask questions, swap workflow recipes.
  • GitHub Issues — report bugs or request features.

👉 Join us → Dograh Community Slack

🙌 Contributing

We love contributions! Dograh AI is 100% open source and we intend to keep it that way.

Getting Started

  • Fork the repository
  • Create your feature branch (git checkout -b feature/AmazingFeature)
  • Commit your changes (git commit -m 'Add some AmazingFeature')
  • Push to the branch (git push origin feature/AmazingFeature)
  • Open a Pull Request

Star History

Dograh star history

📄 License

Dograh AI is licensed under the BSD 2-Clause License- the same license as projects that were used in building Dograh AI, ensuring compatibility and freedom to use, modify, and distribute.

🏢 About

Built with ❤️ by Dograh (Zansat Technologies Private Limited) Founded by YC alumni and exit founders committed to keeping voice AI open and accessible to everyone.




Star us on GitHub | ☁️ Try Cloud Version | 💬 Join Slack