# "A first message: Claude", with the base URL override from "Testing# without a key". Run: ANTHROPIC_API_KEY=... jennifer run claude.juse io; use json; use os;
import"@deckyard/anthropic/"as anthropic;
def key asstringinitos.getEnv("ANTHROPIC_API_KEY");
def c asanthropic.Client initanthropic.client($key);
if (os.hasEnv("ANTHROPIC_BASE_URL")) {
$c = anthropic.withBaseUrl($c, os.getEnv("ANTHROPIC_BASE_URL"));
}
def req asjson.Value initanthropic.newRequest("claude-opus-5-5");
$req = anthropic.withSystem($req, "Answer in one sentence.");
$req = anthropic.addUserText($req, "Why is the sky blue?");
def reply asjson.Value initanthropic.chat($c, $req);
io.printf("%s\n", anthropic.text($reply));