Codemagic

Trigger Codemagic builds and manage mobile CI/CD from any chat

Mobile teams juggle builds across Flutter, iOS, and Android daily. Your AI agent connects to Codemagic's REST API, triggers builds, retrieves build history, manages environment variables, and onboards team members, all without anyone opening the Codemagic dashboard.

Chosen by 800+ global brands across industries

Mobile CI/CD, powered by conversation

From triggering builds to rotating environment secrets, these are the Codemagic operations your AI agent handles directly inside team chat.

Codemagic

Use Cases

Ship mobile apps faster

See how mobile development teams use AI agents to control their Codemagic CI/CD pipeline from Slack, Teams, or any chat interface.

One-Message Production Builds

Release day arrives and the lead engineer types 'Trigger a production build from the release/3.2 tag.' Your AI Agent calls Codemagic's start build API with the app ID, workflow for production, and the tag name. The build kicks off on an Apple Silicon machine, and the agent returns the build ID and a link to monitor progress. The team ships without anyone logging into the CI dashboard.

Environment Secret Rotation at Scale

After a credential leak, the security team needs every Firebase API key rotated across three apps. An engineer messages the AI Agent with the new key values. The agent fetches each app's variable groups, finds the matching variable, updates the value, and toggles the secure flag. All three apps have fresh secrets within minutes, and audit logs confirm every change.

Onboarding Contractors to the Build Pipeline

A new contractor needs Codemagic access by end of day. The project manager tells the AI Agent, 'Invite alex@agency.io as a developer to team mobile-ios.' The agent sends the invite through Codemagic's team API and confirms the role assignment. The contractor receives their invitation email and starts contributing builds the same afternoon.

Try
Codemagic

Codemagic

FAQs

Frequently Asked Questions

How does the AI agent trigger a Codemagic build?

The agent calls Codemagic's POST /builds endpoint with the required parameters: appId, workflowId, and either a branch or tag. You can also pass environment variable overrides and select a machine type like mac_mini_m1. The API returns a build ID immediately so the agent can report progress.

Where do I find my Codemagic API token for the integration?

Navigate to Teams, then Personal Account, then Integrations, then Codemagic API, and click Show. Copy the token and paste it into the Tars tool configuration. This token is personal to your account, so every action the agent takes is attributed to you in Codemagic's audit logs.

Can the AI agent manage environment variables marked as secure?

Yes. The agent can update a variable's value and toggle its secure flag through Codemagic's update variable endpoint. Secure variables are encrypted at rest in Codemagic. The agent sends the new value over HTTPS, and Codemagic handles encryption. The plain-text value is never logged by Tars.

Does Tars store my Codemagic build artifacts or source code?

No. Tars calls Codemagic's API in real time and returns the response to the conversation. Build artifacts remain in Codemagic's storage. Source code is never downloaded or cached by Tars. The integration only reads metadata like build status, app names, and variable configurations.

Can the agent invite someone to a specific Codemagic team?

Yes. Provide the email address, team ID, and role (developer for Member, owner for Admin). The agent calls the invite endpoint and Codemagic sends the invitation email. You must be a team admin for the invite to succeed. The agent will report any permission errors clearly.

How is this different from triggering builds through GitHub webhooks?

Webhooks trigger builds automatically on every push or PR. The Tars integration gives your team manual, on-demand control through natural language. Need to rebuild a specific tag with different environment variables? Just ask the agent. It complements webhooks by covering scenarios that automated triggers do not handle.

What happens if I trigger a build for a branch that does not exist?

Codemagic's API returns an error response, and the agent relays the message to the user. It will suggest checking the branch name or listing the application's configured branches. No broken build is queued, and no resources are consumed.

Can the agent clear build caches for a single application?

Yes. The agent supports two cache operations: delete all caches for an app or delete a specific cache by its ID. Cache deletion is asynchronous in Codemagic, so the agent confirms the request was accepted and the cleanup will complete shortly. This is useful when stale dependency caches cause build failures.

How to add Tools to your AI Agent

Supercharge your AI Agent with Tool Integrations

Don't limit your AI Agent to basic conversations. Watch how to configure and add powerful tools making your agent smarter and more functional.

Privacy & Security

We’ll never let you lose sleep over privacy and security concerns

At Tars, we take privacy and security very seriously. We are compliant with GDPR, ISO, SOC 2, and HIPAA.

GDPR
ISO
SOC 2
HIPAA

Still scrolling? We both know you're interested.

Let's chat about AI Agents the old-fashioned way. Get a demo tailored to your requirements.

Schedule a Demo