Setup
Create a Last Labs account, name a workspace API key, and point the open-source client at this gateway.
- Create a Last Labs account on this host.
- Open API Keys in the current workspace and copy the secret once.
pip install enroute- Export
ENROUTE_API_KEYand point the client at this gateway.
from enroute import Enroute, Message
client = Enroute(
api_key="enroute_...", # ENROUTE_API_KEY
base_url="http://enroute.localhost:3000/v1",
)
response = client.chat(
model="openai/gpt-5.6-luna",
messages=[Message(role="user", content="Hello from Last Labs")],
models=["anthropic/claude-sonnet-5"],
)
print(response.text)Enroute(api_key=...) talks to the hosted gateway. Enroute(providers=...) calls providers directly with your own keys. Same request types and traces either way.