Skip to content

dvarahq/dvara-examples

Repository files navigation

Dvara Examples

Reference configurations, compose files, and SDK integration samples for the Dvara LLM Gateway.

Contents

Directory Description
docker-compose/ Ready-to-run Docker Compose stacks (quick-start, multi-provider, full, ollama, with-email)
getting-started/ First-request scripts in Python and Node.js — basic chat, streaming, structured outputs, multi-provider
sdk-integrations/ Framework examples — OpenAI SDK, LangChain, LiteLLM, Pydantic AI, Vercel AI, Spring AI, LangChain4j

Quick start

git clone https://github.com/dvarahq/dvara-examples.git
cd dvara-examples/docker-compose/quick-start
cp .env.example .env
# edit .env — set DVARA_LICENSE_KEY and OPENAI_API_KEY
docker compose up -d

Gateway ready at http://localhost:8080, DVARA Console at http://localhost:8090.

# Create a tenant and API key in the Console, then:
export DVARA_API_KEY="gw_<your-key>"

cd ../../getting-started/python
pip install -r requirements.txt
python dvara_test.py

Compatibility

Each release of these examples is pinned to a specific Dvara LLM Gateway version. Use the matching examples release for your gateway version.

Examples release Compatible Dvara version
1.0.1 Dvara 1.0.1 (clean release) only

Documentation

Full product docs at dvarahq.com/docs.

License

MIT — see LICENSE.