Quick start
There are two ways to start. The setup wizard connects Cicord to a real Discord server and
checks every step live. The simulator (cicord dev --sim) needs no Discord account at all.
Both assume cicord is installed.
Set up a real server with the wizard
Section titled “Set up a real server with the wizard”Started in a directory without cicord.yaml, the runtime enters setup mode and prints a
one-time link to the setup wizard.
-
Start the runtime in an empty directory:
Terminal window mkdir my-community && cd my-communitycicord serve --public-url https://cicord.example.orgTo work on your own machine instead, run
cicord dev: it writes the repository files into the directory and hot-reloads them. The log prints the link:Cicord is not set up yet: setup mode on http://127.0.0.1:7420open the setup wizard: http://127.0.0.1:7420/admin/setup?token=…The token is single-use and a restart prints a new link. The wizard state is kept in the data directory, so it resumes after a restart.
-
Welcome. Choose between an existing server and a new community (the wizard explains how to create a server first).
-
Discord application. Follow the numbered instructions in the Discord developer portal: New Application, then Bot, Reset Token, Copy. Paste only the token. Cicord derives the application ID from it and names the exact privileged intents to turn on (“Server Members Intent”, “Message Content Intent”), with a Re-check button.
-
Server. Open the invite link (scopes
bot applications.commands, Administrator permission) and authorize the bot. The server appears by itself, no ID to copy. Cicord then checks the bot’s permissions and that its role is above every role it will manage; if not, it tells you which role to drag, for example “drag the role Cicord above Admin” in Server Settings → Roles. -
Repository. Choose where the configuration lives:
- Managed by Cicord: a git repository inside the data directory. No git knowledge needed; every change is still a commit.
- GitHub: an HTTPS repository URL, a branch and a token.
- With
cicord dev, This folder writes the files into the current directory.
Import and activate reads the server as it is, writes
cicord.yaml,servers/<key>.yamlandbots/<bot>/bot.yaml, and computes a preflight plan. The first plan must be empty: everything is adopted, nothing changes on Discord. Cicord then writes the first commit and activates it without a restart. -
Admin login (optional). Add the redirect URL
<public-url>/auth/callbackin the application’s OAuth2 settings and paste the client secret, so that you can sign in to the admin console with Discord. Test login checks the round trip. -
Verify. A checklist runs until everything is green: token, intents, membership, permissions, role hierarchy, slash commands, live events (send a message in the server when asked), an empty plan and a write-back probe.
-
First plugin. Pick one of the official plugins, review what it may do, configure it and install it. The wizard waits for the new revision and suggests a slash command to try (
/poll,/rank…). -
Done. Click Finish. The setup endpoints are closed and the admin console is at
<public-url>/admin/.
The same checks are available at any time on each server’s Diagnostics page in the admin console. The wizard manages one server and one bot; add more by editing the repository.
Try Cicord offline with the simulator
Section titled “Try Cicord offline with the simulator”cicord dev --sim replaces Discord with an in-memory simulator seeded from your YAML. No
token, no Discord account.
-
Scaffold a repository. Without
--server-idand--application-id,cicord inituses placeholder IDs that work with the simulator:Terminal window cicord init my-communitycd my-communitycicord validate✓ my-community: 1 server(s), 1 bot(s), 0 plugin instance(s) -
Start the runtime on the simulator:
Terminal window cicord dev --simThe simulated world has a user
ownerwho owns every server, each bot invited with Administrator, and the usersalice,bobandcharlie(not members yet). The servers start empty: the first sync creates your roles, categories and channels. -
Open http://127.0.0.1:7420/admin/ and sign in as a simulated user.
-
Use the Simulator panel to join servers, send messages, run slash commands, click buttons and submit modals, while you watch the reconciler and your plugins react.
-
Edit a file: every save becomes a new revision (hot reload), and edits made in the admin console are written back to your files.
To try the setup wizard itself offline, run it against a simulated Discord:
cicord dev --sim --setup ./my-communityThe simulated world then has a server “Pixel Pals” with roles, channels and members, and Simulate buttons stand in for discord.com (create a bot, turn intents on, authorize the invite, drag the role, send a message).
Prefer to set things up by hand?
Section titled “Prefer to set things up by hand?”The wizard does all of this for you, but every step can be done manually:
-
Create the bot in the Discord developer portal: a new application, then Bot → reset and copy the token. Under Privileged Gateway Intents, enable what your plugins declare (
ServerMembersformemberJoin,MessageContentto read message text). -
Scaffold the repository with your real IDs:
Terminal window cicord init my-community --server-id <discord server id> --application-id <discord application id>cd my-communitycicord validateTo start from a server that already exists,
cicord import <server-id>writesservers/<key>.yamlfrom the live server (see the CLI reference). -
Invite the bot with the
botandapplications.commandsscopes and the Administrator permission, for examplehttps://discord.com/oauth2/authorize?client_id=<application id>&scope=bot+applications.commands&permissions=8. Move its role high enough: a bot can only manage roles below its own. -
Run the runtime with the token in the variable named by
token.secretRef:Terminal window export DISCORD_TOKEN_BOT=...cicord serve --local --public-url https://cicord.example.org--localserves the directory as is. Without it,cicord servefollowscicord.yamlspec.source(see Deploy). -
Admin login. Set
CICORD_DISCORD_CLIENT_SECRET(the application’s OAuth2 client secret) and add<public-url>/auth/callbackas a redirect URL. Server owners are admins;spec.accessgrants admin or moderator to roles and users.
Next: make your first change.