atuin: add atuin-ai-server for the CLI's ai feature #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/atuin-ai-server"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds
atuin-ai-serveralongside the existing atuin server: a stateless backend for the CLI'saifeature that speaks the Atuin AI protocol and fronts an OpenAI-compatible chat endpoint.What lands
atuin-ai-configConfigMap holdingconfig.tomlatuin-ai-secretOpaque Secret holding the CLI bearer tokenatuin-ai-deployment(image pinned by digest) +atuin-ai-service:8080atuin-aiprivate Pangolin resource on sitetesty-bush-ratDecisions you may want to overrule
litellm.agents.svc.cluster.local:4000/v1), not ollama directly, so keys/spend/fallbacks stay in one place.qwen3-30b-a3b. The protocol drives tools on every turn, so a model without tool calling cannot work here.random.RandomPassword, 48 chars, no specials) and stored in a Pulumi-owned Secret, consumed viasecretKeyRef. Read it back withpulumi stack output --show-secrets "atuin-ai auth token". Replacing that random resource invalidates every client - treat a Length change as a cutover.litellm/envat deploy time, sopulumi upneedsVAULT_ADDR+VAULT_TOKEN.PrivateResourceon the site that fronts this cluster. No public FQDN, no forward-auth, no health-check question (the site-resource surface has none).Schemeis set tohttpbecause it defaults to https and this service speaks plain HTTP in-cluster. Clients need the Pangolin client running to resolve the hostname.After deploy
That value goes into agenix (
secrets/atuin-ai-token.age) and reaches the CLI asATUIN_AI__API_TOKEN, which atuin layers overconfig.toml- so the token never entersprograms.atuin.settingsor the nix store.Note
First commit (
9cd4efe) commits the previously-uncommitted Pangolin work as the deployed state - verified live:atuin.litelot.usanswers 200 when resolved straight at the edge IP.aifeature 8b964f6513go builddrops in the repo root 73c4be9e82View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.