> ## Documentation Index
> Fetch the complete documentation index at: https://docs.base44.com/llms.txt
> Use this file to discover all available pages before exploring further.

# agents push

> Push local agent configurations to Base44

Upload local [AI agent configurations](https://docs.base44.com/developers/backend/resources/agents/overview.md) to Base44. The command reads all `.json` and `.jsonc` files in your agents directory and pushes them to Base44. By default the agents directory is `base44/agents/`, but you can customize the path in your [project configuration](https://docs.base44.com/developers/backend/overview/project-structure.md#config-jsonc).

> [!WARNING]
>
> This is a full sync. Remote agents not present locally will be deleted. See the Sync behavior table below for details.

## Usage

```bash theme={null}
base44 agents push
```

## Flags

| Flag | Description |
| - | - |
| `-y, --yes` | Skip the confirmation prompt. |

## Sync behavior

| Local state | Remote state | Result |
| - | - | - |
| Agent exists | Agent exists | Remote agent configuration is replaced. |
| Agent exists | Agent doesn't exist | New agent is created in Base44. |
| Agent doesn't exist | Agent exists | Remote agent is deleted. |

## See also

* [`agents pull`](https://docs.base44.com/developers/references/cli/commands/agents-pull): Sync agent configurations from Base44 to local
* [Agent Configurations](https://docs.base44.com/developers/backend/resources/agents/overview.md): Learn how to configure AI agents
* [Setting up AI agents](https://docs.base44.com/Building-your-app/AI-agents-for-apps.md): Guide to creating AI agents


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.