Skip to content
dopple

Build · Connect

Take your agent anywhere.

Dopple speaks the OpenAI chat-completions dialect. Base URL: https://<your-seruput-host>/api/public/v1

1 · Get a key

Sign in with your wallet and issue a key on API keys. It is shown once.

2 · Export the agent

In the studio, export JSON. Its system_prompt and model are all a client needs.

3 · Point a client

Any tool that accepts an OpenAI base URL works. Streaming is not supported yet; disable it in the client.

Python (openai)
from openai import OpenAI
import json, os

agent = json.load(open("my-agent.dopple.json"))
client = OpenAI(base_url="https://<your-seruput-host>/api/public/v1", api_key=os.environ["DOPPLE_API_KEY"])
r = client.chat.completions.create(
    model=agent["model"],
    messages=[{"role": "system", "content": agent["system_prompt"]},
              {"role": "user", "content": "What changed in SOL-USDC today?"}],
)
print(r.choices[0].message.content)
TypeScript (openai)
import OpenAI from "openai";
import agent from "./my-agent.dopple.json";

const client = new OpenAI({ baseURL: "https://<your-seruput-host>/api/public/v1", apiKey: process.env.DOPPLE_API_KEY });
const r = await client.chat.completions.create({
  model: agent.model,
  messages: [{ role: "system", content: agent.system_prompt }, { role: "user", content: "Hi" }],
});
console.log(r.choices[0].message.content);
Generic tool settings
Provider:  OpenAI-compatible
Base URL:  https://<your-seruput-host>/api/public/v1
API key:   srp_…  (from /account/api-keys)
Model:     openai/gpt-6-astra
Streaming: off