DikuMUD Client provides comprehensive account management features to help you organize and quickly connect to multiple MUD servers.
Accounts are stored in ~/.config/dikuclient/accounts.json in JSON format. The file is created automatically when you save your first account. Account credentials are stored locally on your machine.
Run the client without any arguments to enter the interactive menu:
./dikuclientYou'll be presented with:
- A list of saved accounts (if any)
- Option to connect to a new server
- Option to exit
When connecting to a new server, you'll be prompted to:
- Enter the hostname
- Enter the port (default: 4000)
- Username (optional, for auto-login and identification)
- Password (optional, for auto-login)
Connect to a server and save the account in one command:
./dikuclient --host mud.example.com --port 4000 --save-accountThis will prompt you for:
- Account name (for easy identification)
- Username (optional, for auto-login)
- Password (optional, for auto-login)
$ ./dikuclient --host aardmud.org --port 23 --save-account
Enter account name: AardMUD
Enter username (optional): mycharacter
Enter password (optional): mypassword
Account 'AardMUD' saved successfully.
Note: If you don't provide a username, you can still connect to the server but won't have saved credentials for auto-login.
./dikuclient --account AardMUDThe client will automatically:
- Connect to the saved host and port
- Wait for login prompts
- Send username when prompted
- Send password when prompted
./dikuclientThen choose the account number from the list.
./dikuclient --list-accountsExample output:
Saved accounts:
1. AardMUD (aardmud.org:23)
Username: mycharacter
2. DikuMUD (diku.mud.org:4000)
Username: player1
3. TestMUD (localhost:4000)
./dikuclient --delete-account AardMUDThis removes the account from your saved accounts list.
To update an account, simply save it again with the same name:
./dikuclient --host aardmud.org --port 23 --save-accountEnter the same account name, and the existing account will be updated with the new details.
When you save username and password with an account, the client will automatically detect common login prompts and send your credentials.
The client recognizes these patterns (case-insensitive):
- Username prompts: "name:", "login:", "account:", "character:"
- Password prompts: "password:", "pass:"
- Client connects to the MUD server
- Waits for username prompt
- Automatically sends username
- Waits for password prompt
- Automatically sends password
- You're logged in and ready to play!
The client shows gray messages when auto-login is happening:
[Auto-login: sending username 'mycharacter']
[Auto-login: sending password]
- Account credentials are stored in plain text in
~/.config/dikuclient/accounts.json - The file has permissions 0600 (readable/writable only by you)
- Keep your computer secure to protect your credentials
- Consider using different passwords for MUDs than for important accounts
Here's what the accounts.json file looks like:
{
"accounts": [
{
"name": "AardMUD",
"host": "aardmud.org",
"port": 23,
"username": "mycharacter",
"password": "mypassword"
},
{
"name": "LocalTest",
"host": "localhost",
"port": 4000,
"username": "",
"password": ""
}
]
}- Quick Connect: Create accounts for your favorite MUDs and use
--accountflag for instant connection - Multiple Characters: Save multiple accounts for the same MUD with different usernames
- No Credentials: You can save accounts without username/password for servers that don't require login
- Account Names: Use descriptive names like "AardMUD-Main" and "AardMUD-Alt" for clarity
The auto-login feature looks for common prompt patterns. If your MUD uses different prompts:
- The credentials are still saved
- You can manually type your username and password
- Consider reporting the prompt format so we can add support
The config file is located at:
- Linux/Mac:
~/.config/dikuclient/accounts.json - Windows:
%USERPROFILE%\.config\dikuclient\accounts.json
You can directly edit the accounts.json file with any text editor. The format is straightforward JSON.