---
title: keycard-upsert-config | Keycard
description: Set or change a field in keycard.toml — reads the current value and writes a targeted update.
---

Set or change a field in `keycard.toml` — reads the current value and writes a targeted update.

## When to Use

Use this skill when:

- You want to set or change a field in `keycard.toml`
- You want to add or update a credentials entry

Do **not** use this skill for Cedar policy rules (use `keycard-query-policy`), to inspect what credentials are active in the current session (use `keycard-credentials`), or for read-only field questions where you don’t intend to write.

## Arguments

`[what to change, e.g. 'set my zone to dev-123' or 'add a GitHub credential entry for GITHUB_TOKEN']`

## Examples

- “Set my zone to dev-abc123”
- “Add a GitHub credential entry for GITHUB\_TOKEN”
- “Update the management API URL”
