# make_graph

> **Function** in `deepagents_cli`

📖 [View in docs](https://reference.langchain.com/python/deepagents-cli/server_graph/make_graph)

Create the CLI agent graph from environment-based configuration.

Reads `DEEPAGENTS_CLI_SERVER_*` env vars via `ServerConfig.from_env()`
(the inverse of `ServerConfig.to_env()` used by the CLI process), resolves a
model, assembles tools, and compiles the agent graph.

## Signature

```python
make_graph() -> Any
```

## Returns

`Any`

Compiled LangGraph agent graph.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/a827cddf72d72e4b17921b8eb445a3bfb0511cb4/libs/cli/deepagents_cli/server_graph.py#L93)