StreamCore
Open-source Go server that owns the realtime WebRTC media path — transport, barge-in, streaming STT/LLM/TTS — while your agent stays yours.
- Source repo
- streamcoreai/streamcore-server
- Stars
- ★ 246
- Last updated
- 16d ago
- FARS reviewed
- Nov 17, 2026
- License
- Apache-2.0
- Primary language
- Go
- FA score
- 64/100 · Some gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformOpenAI API
- Cost
- Free software; you pay for model usage
- Setup effort
- Medium · a few setup steps
- You'll need
- Typical use
- Teams that already have an agent or business backend and want to outsource only the realtime media layer by setting llm.provider = "agent" and receiving each turn as an HTTP POST
- Not a fit if
- Teams that need horizontal scaling — sessions live in process memory, so the server is single-node today
- Projects that expect turnkey voice: you must wire and pay for separate STT, LLM and TTS providers
- Ops teams requiring built-in Prometheus/OpenTelemetry metrics or structured JSON logs
- Website
- streamcore.ai ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-07
- Source review
- 64/100 · Some gaps
What does this agent do, and when should you use it?
StreamCore is an open-source realtime voice agent server written in Go. It owns the latency-sensitive media path between callers and your own AI: WebRTC audio carried over WHIP (RFC 9725) with a single HTTP POST for signaling and Opus/RTP in both directions, plus built-in Pion STUN/TURN on UDP and TCP 3478 so no external coturn is needed. On top of transport it provides adaptive VAD with debounce, barge-in that ducks agent audio, filters backchannels and cancels in-flight LLM/TTS work, server-generated session IDs, and DataChannel events for transcript, response, state and per-turn latency. The AI pipeline is streaming STT → streaming LLM → chunk-streaming TTS, with providers including Deepgram, AssemblyAI, OpenAI, Cartesia, ElevenLabs, MiniMax, Speechify, Telnyx, Ollama, and local Moonshine and VibeVoice. One binary, configured through config.toml or environment variables, serves browsers, mobile apps, backends, CLIs, SIP telephony and ESP32 devices; sessions live in process memory, so the current deployment model is single-node. It is Apache-2.0 licensed and deliberately does not own your prompts, tools or business logic.
A client sends one WHIP request to http://localhost:8080/whip, the server answers with SDP, and Opus/RTP audio flows both ways. The server runs adaptive VAD that tracks each call's noise floor plus a debounce that merges mid-sentence pauses into one turn; on a confirmed interrupt it ducks agent audio, filters backchannels like "mm-hm", and cancels the in-flight LLM and TTS requests. Once a turn is committed, audio goes to streaming STT (Deepgram, AssemblyAI, OpenAI's whisper-1 / gpt-4o-transcribe / gpt-4o-mini-transcribe, or Telnyx's multi-engine front end), text goes to a streaming LLM (OpenAI, Ollama, or an HTTP endpoint you host when llm.provider = "agent"), and the reply is synthesized by chunk-streaming TTS so playback starts before synthesis finishes. Throughout, DataChannel events carry transcript, response, state and per-turn STT/LLM/TTS latency. Operationally it exposes /health, enforces server.max_sessions with a 503 + Retry-After on POST /whip (resumes exempt), and recovers drops through ICE restart on the same session or a single-use resume token. Secrets can come from the environment (OPENAI_API_KEY, STREAMCORE_JWT_SECRET, …) instead of config.toml.
- Teams that already have an agent or business backend and want to outsource only the realtime media layer by setting llm.provider = "agent" and receiving each turn as an HTTP POST
- Developers building browser-based voice assistants or live translation where the user must be able to interrupt mid-sentence and first-word latency is visible
- Call-center and phone-bot teams bridging telephony audio into the same streaming STT/LLM/TTS pipeline through the SIP server
- Hardware teams adding voice to embedded devices, using the ESP32 firmware against the same WHIP + DataChannel protocol
- Organizations that need voice agents to run privately or offline, using the fully local path with Ollama plus local Moonshine and VibeVoice
- Engineers connecting web, React Native, backend or CLI clients through the TypeScript, Python, Go or Rust SDKs
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Ports
8080- Environment variables
OPENAI_API_KEYSTREAMCORE_JWT_SECRET- Config files
config.toml- Runtime
- Go 1.25+
- Install notes cover
- Docker
How do you install or deploy this agent?
You need Go 1.25+ (or Docker) and credentials for an STT, an LLM and a TTS provider; without keys you can run the fully local path with Ollama + VibeVoice.
cp config.toml.example config.toml # add your provider credentials
go run .The server listens on :8080 and clients connect to http://localhost:8080/whip. Secrets can also come from the environment instead of config.toml:
export OPENAI_API_KEY=...
export STREAMCORE_JWT_SECRET=...Docker deployment, TURN ports and production notes are covered in docs/quickstart.md; the annotated config.toml reference is docs/configuration.md.
How do you use this agent?
Bring up the official example client to talk to the running server from a browser:
git clone https://github.com/streamcoreai/examples.git
cd examples/typescript && npm install && npm run devOpen http://localhost:3000 and start talking; interrupt the agent while it speaks and watch per-turn STT, LLM and TTS latency on screen.
To hand each turn to an agent you host, point the LLM provider at your HTTP endpoint:
llm.provider = "agent"Or at an Ollama-compatible URL you run:
llm.provider = "ollama"You can also implement the small llm.Client interface in Go and keep the media path unchanged. Client libraries live in js-sdk, python-sdk, go-sdk and rust-sdk; plugins are written with @streamcore/plugin or streamcore-plugin.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
What are this agent's strengths and limitations?
- WHIP (RFC 9725) needs only one HTTP POST for signaling — no signaling socket — which keeps client integration small
- Built-in Pion STUN/TURN over both UDP and TCP 3478 removes the external coturn dependency, and a network handover or NAT rebind is recovered by ICE restart on the same session
- Barge-in is handled in detail: agent audio ducking, backchannel filtering, cancellation of in-flight LLM and TTS, and on echo-cancellation-free telephony paths a threshold bounded by what the agent just sent
- Agent ownership is preserved through five documented paths — tool calls, the HTTP agent endpoint, Ollama, a small Go interface, or the optional built-in runtime — with no fork required
- Broad provider coverage plus genuinely local options (Ollama, Moonshine, VibeVoice), with TypeScript, Python, Go and Rust SDKs sharing one WHIP + DataChannel protocol
- Failure handling is spelled out: per-call panic recovery, server.max_sessions with 503 + Retry-After, and a restart-then-resume reconnection ladder in every SDK
- Single-node by design today: sessions live in process memory, and horizontal scaling needs sticky routing or an external store — the README lists this as unfinished
- Limited observability: no Prometheus or OpenTelemetry export, and logging is still log.Printf text without JSON fields or session_id
- Setup is not trivial — you must wire and pay for separate STT, LLM and TTS providers (or configure local models), fill in config.toml and open TURN ports
- Release packaging is incomplete: a Docker image goes to GHCR per GitHub release, but the binary carries no version and there are no tagged standalone binaries
- Client SDKs, the SIP bridge, examples and ESP32 firmware live in separate repositories, so contributions go to those repos
- The React Native / Expo SDK is built but not yet published to npm
How does this agent compare with similar options?
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| StreamCore This agent | 64 · Some gaps | Self-hosted serviceFree + model costs | ★ 246 | 16d ago | Go | OpenAI API |
| jargo | 74 · Some gaps | — | ★ 113 | today | Go | OpenAI API · Claude API |
| Voice AI Learning Path | 68 · Some gaps | Library / SDKFree | ★ 343 | 26d ago | Astro | — |
| Patter Voice SDK | 65 · Some gaps | Library / SDKFree + model costs | ★ 1.1k | 3mo ago | Python | OpenAI API · Claude API |
How does FollowAgents rate this agent?
Why each dimension lost points
SECURITY.md states plugins run with server privileges and are not sandboxed, and JWT auth on /whip is off by default — a real least-privilege gap (least_privilege=1); the bot-gestures skill instructs calling tools immediately without confirmation, so user_confirmation=1; configuration docs disclose data flows to STT/LLM/TTS providers, agent endpoints and RAG, data_flow_transparency=2; env-var secrets, gitignored config.toml and log-redaction guidance give sensitive_data_handling=2; go.mod pins recent versions but there is no vulnerability scanning or audit evidence, dependency_security=1; plugins call external backends and Codex writes a workspace with documented bounds but no rollback, external_effects=1; rollback relies on Docker images and compose down with no versioned binaries, rollback=1; LICENSE and repo links exist but publisher identity is unverified, source_attribution=1.
README, AGENTS.md and configuration.md agree on port 8080, /whip, DataChannel label, 429 rate limit and 503 max_sessions, self_consistency=2; dependencies are public Go modules with a complete go.mod, dependency_availability=2; error-recovery skill and SECURITY.md define failure semantics, but source samples are limited, failure_messages=2.
README covers browser, mobile, backend, CLI, SIP and ESP32 plus fully local mode, audience_and_scenarios=3; an explicit 'not built yet' list and five BYO-agent paths give capability_boundaries=3; skill triggers are broad (response, speak, answer, error) and may misfire, trigger_precision=2; Docker, local and EC2 paths exist but in-memory single-node sessions limit scaling, environment_fit=2.
Clear bilingual docs tree, information_architecture=3; quickstart gives Go/Docker/local install paths, install_notes=3; naming is mostly stable but version numbers are absent and SDK names vary, naming_stability=2; examples exist for plugins and clients but little FAQ, examples_and_faq=2; README honestly lists unfinished items, known_limitations=3; full Apache-2.0 LICENSE, license=3; no versioned releases or changelog, versioning_changelog=1; CONTRIBUTING/SECURITY exist but publisher is unverified, maintenance_responsibility=2.
Output usability depends on external providers and config; sample plugins and skills look runnable but were not executed, output_usability=2; clear marginal value as a media layer but requires your own agent and keys, marginal_value=2; costs span multiple APIs and local models, cost_benefit=2.
README claims are cross-checkable against docs, go.mod and CI workflow, claim_traceability=2; multiple files corroborate each other but no test-result evidence, cross_source_corroboration=2; docs separate shipped facts from roadmap items, fact_inference_separation=2.
- JWT auth on /whip is off by default; enable it before any internet-facing deployment or anyone can burn your provider quota.
- Plugins run with server privileges and are not sandboxed — audit sources before installing.
- The bot-gestures skill instructs immediate tool calls without confirmation; assess risk for physical actions.
- Session state is in-process and single-node, limiting horizontal scaling and recovery.
- Publisher identity is unverified; independently confirm provenance and dependencies before production use.
FAQ
Is this an agent framework or just transport plus a voice pipeline?
Can it run fully locally without calling any cloud provider?
Can I run several instances behind a load balancer?
On phone calls, how does it avoid interrupting itself?
Do I have to add my own monitoring?
Is StreamCore free?
Is StreamCore open source?
Is StreamCore safe to use?
Is StreamCore still maintained?
What is StreamCore's official website?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.