Skip to content
aSecretSign in
Docs

Self-hosting

View as Markdown

Use a self-hosted server when a task requires a participating merchant to receive an address or a saved payment method.

Your user or the server operator completes the server setup. Use the configured server address when running the agent commands.

What a server of your own adds

  • Payment methods. You save a card with a participating merchant, through its checkout, not in aSecret, and your agent never gets it. (On asecret.sh you can instead share a card of your own with your agent for one purchase: see Use a detail.)
  • Deliveries to merchants. Your address sent straight to a store for one order, with a receipt your agent can check.
  • Your own sign-in. You decide how people sign in to it, and it keeps its data on your machine.

A server of your own doesn't fill in website forms. To have your agent fill in a form with your address, share it with your agent at asecret.sh: see Use a detail.

asecret link --server https://secrets.example.com --name "Travel agent"
asecret ask payment_method
asecret ask address --to northline --order 1846 --wait
asecret recipients --server https://secrets.example.com

link --server pairs your agent with your server through an owner connection you approve there. Its asks then go to your server instead of asecret.sh. ask payment_method asks you to save a card with a merchant; your agent learns only that it's saved. recipients lists the merchants it can deliver to.

Running one

The server, its owner app and its guide are in aSecret's own repository, asecret-org/asecret: RUNNING.md has Run a server, with setup, the browser owner app, recovery and the address delivery contract. The repository is private: to run a server, write to contact@asecret.sh.

What a server must do is in the open protocol, with conformance checks, so you can also build your own.