# setup_config_parser

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/client/commands/config/setup_config_parser)

Register the `dcode config` command group.

## Signature

```python
setup_config_parser(
    subparsers: Any,
    *,
    make_help_action: Callable[[Callable[[], None]], type[argparse.Action]],
    add_output_args: Callable[..., None],
) -> None
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `subparsers` | `Any` | Yes | The `argparse` subparsers object from the top-level CLI parser, onto which the `config` command group is attached. |
| `make_help_action` | `Callable[[Callable[[], None]], type[argparse.Action]]` | Yes | Factory that wraps a `show_*` callable into an `argparse.Action` so `-h/--help` renders the hand-maintained help screens from `deepagents_code.ui`. |
| `add_output_args` | `Callable[..., None]` | Yes | Helper that adds the shared `--json` flag. |

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/e14e0adcbe78565ed3650e7f24b2a775d5437d25/libs/code/deepagents_code/client/commands/config.py#L52)