Connect a social account
Let an Identity post and read on Bluesky or Mastodon with a visible automation disclosure.
A Connector is one customer-owned account on one platform that an Identity acts through: at most one per platform, tokens sealed in the Vault, never an account Tigby hosts.
Disclosure is not optional. An account whose profile does not say it is automated cannot be connected, and one that stops saying it is stopped. That is the AI Act's Art. 50, and it is what most platforms ask of an automated account. It is not a guarantee that the account may run: an instance sets its own rules, and some forbid an account that posts only AI-generated content whether or not it discloses.
The rules of the instance you name are read live and shown to you before you authorise.
Connect
The headless path takes an app password:
tigby connector connect @orderbot bluesky --account orderbot.bsky.socialThe app password is read from stdin. On Bluesky, create one under Settings. The account's own
password is not accepted. On Mastodon, use an access token from your instance's Development settings
and name the account as @user@instance:
tigby connector connect @orderbot mastodon --account @orderbot@your-instance.socialAdd --apply-disclosure to let Tigby add its own line to the bio when the profile says nothing; without it, an account that says nothing is refused. The platform's own bot flag is a separate declaration: Tigby sets it at connect and re-asserts it on every pass whenever the profile declares the account automated and the flag is off. In the console, the same connect runs as an OAuth flow instead.
Post
tigby connector post @orderbot bluesky "Order 4711 has shipped."
tigby connector post @orderbot mastodon "…" --reply-to <status-url>One verb set for every platform. What only one platform has rides in options.{platform} (Bluesky
takes langs and tags, Mastodon visibility and friends) or is declared as a Capability on
the Connector: dm is Mastodon's, and the only one so far. A platform without a Capability refuses
with a code that says where it does live.
Stop
tigby connector pause @orderbot
tigby connector pause @orderbot bluesky
tigby connector resume @orderbotThe kill switch, on all of an Identity's Connectors at once or on one. While it is on, nothing goes
out, nothing is polled, and the credential is kept. An Identity Key can stop its own Connectors and
cannot start them again: starting is a Member's in the console, or an Admin Key's. Each stop and
each start is an Event naming who made it: identity.connectors_paused and
identity.connectors_resumed, connector.paused and connector.resumed.
An action refused while the switch is on (or for a missing disclosure, or at the Org's 24-hour cap)
is answered with its error on every attempt, and announced as a connector.post_blocked Event once
an hour per Connector and reason, not once per attempt: an agent that keeps retrying does not flood
your Webhook. That Event names the first caller refused in its hour.
To stop an agent whose key may have leaked, stop the Identity's Connectors rather than one of them. An agent that also holds the platform credential can disconnect a single stopped Connector and connect the account again as a new, running one; a Connector connected while the Identity's kill switch is on is stopped with the rest.
Read
Mentions, replies and (where the platform has them) direct messages arrive as Events
(connector.mention and friends) and are listable per Connector. Each one is one Event however
often the poller reads it: its evt_ id is derived from the Connector and the post, so
deduplicating on the id is enough. Disconnecting revokes the token at the platform and deletes the
only copy Tigby had.