gandi-cli
Skill2 starsChanged 8 months agoMITView on GitHub
Manage Gandi.net domains, DNS records, certificates, and email using the gandi CLI. Use when the user wants to manage domain names, LiveDNS records, SSL certificates, email forwarding, mailboxes, or organizations on Gandi.net. Triggers on mentions of Gandi, domain management, DNS records, or gandi-cli.
- Installs packages
In this repository12 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- 1password-cliSkill
- awscliSkill
- iterm2-automationSkill
- iterm2-profilesSkill
- iterm2-shell-setupSkill
- pbcopySkill
- syncthingSkill
- synology-cliSkill
- tailscale-cliSkill
- textual-tuiSkill
- your-skill-nameSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 28
Run directly with uvx (no install needed):
- Distinctive: line 142
All supported types: A, AAAA, ALIAS, CAA, CDS, CNAME, DNAME, DS, HTTPS, KEY, LOC, MX, NAPTR, NS, OPENPGPKEY, PTR, RP, SOA, SPF, SRV, SSHFP, …
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Gandi CLI Assistant
Help users manage Gandi.net services using the gandi CLI.
Source: https://github.com/lyhcode/agent-gandi-cli
Prerequisites
- Python 3.11+ with
uvxorpip - A Gandi Personal Access Token (PAT) from https://account.gandi.net/
Installation & Usage
Run directly with uvx (no install needed):
uvx agent-gandi-cli gandi <command>Or install globally:
pip install agent-gandi-cli
gandi <command>Authentication
Token priority: --token flag > GANDI_PAT env var > config file.
# Save token to config file
gandi auth login --token <your-pat>
# Or set environment variable
export GANDI_PAT="your-personal-access-token"
# Check authentication status
gandi auth status
# Remove saved token
gandi auth logout
# Set default organization
gandi auth set-org <sharing-id>Config file location: ~/.config/gandi-cli/config.toml (TOML format)
[auth]
pat = "your-token"
[defaults]
sharing_id = ""
output = "table"Global Options
| Option | Description |
--output, -o | Output format: table (default), json, plain |
--token | API token (overrides config, env: GANDI_PAT) |
--sharing-id | Organization ID (env: GANDI_SHARING_ID) |
--sandbox | Use sandbox API (api.sandbox.gandi.net) |
Domain Management
# List domains
gandi domain list
gandi domain list --fqdn "example" # Filter by FQDN pattern
gandi domain list --per-page 50 # Pagination
# Domain details
gandi domain info example.com
# Check availability and pricing
gandi domain check newdomain.com
gandi domain check newdomain.com --currency TWDDNS Record Management (LiveDNS)
# List all records
gandi dns list example.com
gandi dns list example.com --type A # Filter by type
gandi dns list example.com --name www # Filter by name
# Get specific record
gandi dns get example.com www A
gandi dns get example.com @ MX
# Create record
gandi dns create example.com www A 1.2.3.4
gandi dns create example.com www A 1.2.3.4 5.6.7.8 # Multiple values
gandi dns create example.com mail MX "10 mail.example.com." --ttl 3600
gandi dns create example.com @ TXT "v=spf1 include:_spf.google.com ~all"
# Update record
gandi dns update example.com www A --value 9.8.7.6
gandi dns update example.com www A --value 1.1.1.1 --value 2.2.2.2 --ttl 600
# Delete record
gandi dns delete example.com www A
gandi dns delete example.com www A --force # Skip confirmation
# Export zone file
gandi dns export example.comCommon DNS Record Types
| Type | Example Value | Description |
A | 1.2.3.4 | IPv4 address |
AAAA | 2001:db8::1 | IPv6 address |
ALIAS | alias.example.com. | Alias for bare domain (like CNAME on @) |
CNAME | alias.example.com. | Canonical name (trailing dot) |
MX | 10 mail.example.com. | Mail exchange (priority + host) |
TXT | "v=spf1 ..." | Text record (SPF, DKIM, verification) |
NS | ns1.example.com. | Nameserver |
SRV | 10 5 5060 sip.example.com. | Service record |
CAA | 0 issue "letsencrypt.org" | Certificate authority authorization |
All supported types: A, AAAA, ALIAS, CAA, CDS, CNAME, DNAME, DS, HTTPS, KEY, LOC, MX, NAPTR, NS, OPENPGPKEY, PTR, RP, SOA, SPF, SRV, SSHFP, SVCB, TLSA, TXT, WKS
Important Constraints
- ALIAS + DNSSEC: ALIAS records on bare domain (
@) will break DNSSEC — avoid combining them - CNAME exclusivity: CNAME cannot coexist with other record types on the same name
- Email forwards: Max 100 creations/updates per week per domain (HTTP 429 on exceed)
Certificate Management
# List SSL certificates
gandi cert list
gandi cert list --cn example.com # Filter by Common Name
gandi cert list --status valid # Filter: valid, expired, pending, revoked
# Certificate details
gandi cert info <cert-id>Email Management
Email Forwarding
# List forwards
gandi email forward list example.com
# Create forward
gandi email forward create example.com info user@gmail.com
gandi email forward create example.com sales user1@gmail.com user2@gmail.com
# Delete forward
gandi email forward delete example.com info
gandi email forward delete example.com info --forceMailboxes
# List mailboxes
gandi email mailbox list example.com
# Mailbox details
gandi email mailbox info example.com <mailbox-id>Organization Management
# List organizations
gandi org list
gandi org list --name "My Company"
# Organization details
gandi org info <org-id>
# Show current user
gandi org whoamiOutput Formats
# Table output (default, human-readable)
gandi domain list
# JSON output (for scripting)
gandi domain list -o json
# Plain output (minimal)
gandi domain list -o plain
# Pipe JSON to jq
gandi dns list example.com -o json | jq '.[].rrset_name'Common Patterns
Set up a new subdomain
gandi dns create example.com blog A 1.2.3.4
gandi dns create example.com blog AAAA 2001:db8::1Update DNS for a migration
gandi dns update example.com www A --value 10.0.0.1 --ttl 300
# After migration is verified, restore normal TTL
gandi dns update example.com www A --value 10.0.0.1 --ttl 10800Add email forwarding
gandi email forward create example.com info personal@gmail.com
gandi email forward create example.com support team@company.comExport DNS for backup
gandi dns export example.com > example.com.zoneShell Completion
# Install completion for current shell
gandi --install-completion
# Show completion script
gandi --show-completionDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

