---
title: "Embedded Weaviate"
description: "Use Embedded Weaviate for development with code examples in Python and TypeScript."
url: https://docs.weaviate.io/weaviate/connections/connect-embedded
---

# Embedded Weaviate

Embedded Weaviate is a deployment model that runs a Weaviate instance from your application code rather than from a stand-alone Weaviate server installation.

When Embedded Weaviate starts for the first time, it creates a permanent datastore in the location set in your `persistence_data_path`. When your client exits, the Embedded Weaviate instance also exits, but the data persists.

The next time the client runs, the client starts a new instance of Embedded Weaviate. New Embedded Weaviate instances use the data that is saved in the datastore.

For more details on using Embedded Weaviate, see [Embedded Weaviate](https://docs.weaviate.io/deploy/installation-guides/embedded).

## Start an Embedded Weaviate instance

**Python**

```py
import weaviate
import os

# Best practice: store your credentials in environment variables
openai_api_key = os.environ["OPENAI_API_KEY"]

client = weaviate.connect_to_embedded(
    version="1.37.0",
    headers={
        "X-OpenAI-Api-Key": openai_api_key
    },
    environment_variables={"LOG_LEVEL": "error"}  # Reduce amount of logs
)

# Add your client code here.
# When the client exits, the embedded instance also exits
```
