Agentic-first encoding and decoding service. The agent IS the interface.
Encode and decode data in multiple formats: Base64, Base64URL, Base64Raw, Base32, Base32Hex, Hex, URL, HTML entities, ROT13, and Binary. Plain text API, agent-driven, single Go binary.
# Build
make build
# Run (defaults to :7700)
./encodekit
# Or with custom address
./encodekit -addr :8080# 1. Request OTP
curl -X POST http://localhost:7700/auth/request -d 'email=user@example.com'
# 2. Verify OTP (code is logged to stderr in dev mode)
curl -X POST http://localhost:7700/auth/verify -d 'email=user@example.com&code=123456'
# 3. Use the token
curl -H "Authorization: Bearer <token>" http://localhost:7700/encode/base64 -d 'data=Hello World'Self-documenting operating manual for agents.
List all supported encoding types.
Encode text to the specified format.
- Body:
data=<text>&save=true(save is optional) - Types:
base64,base64url,base64raw,base32,base32hex,hex,url,html,rot13,binary
Decode encoded data back to text.
- Body:
data=<encoded>&save=true(save is optional)
List all saved operations.
Get a specific saved operation.
Delete a saved operation.
View recent audit log entries.
MCP JSON-RPC 2.0 endpoint for chat client integrations.
Plain text by default (one labeled line per record):
type=base64 input=Hello World output=SGVsbG8gV29ybGQ=
JSON available via Accept: application/json or ?format=json.
| Source | Variable | Default | Description |
|---|---|---|---|
| Flag | -addr |
:7700 |
Listen address |
| Env | ENCODEKIT_ADDR |
:7700 |
Listen address |
| Flag | -secret |
auto | Token signing secret |
| Env | ENCODEKIT_SECRET |
auto | Token signing secret |
| Env | ENCODEKIT_DATA |
encodekit-data.json |
Data file path |
make build # CGO_ENABLED=0, single binary
make test # go test -race
make vet # go vetMIT