enroute

Setup

Create a Last Labs account, name a workspace API key, and point the open-source client at this gateway.

  1. Create a Last Labs account on this host.
  2. Open API Keys in the current workspace and copy the secret once.
  3. pip install enroute
  4. Export ENROUTE_API_KEY and 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.