> For the complete documentation index, see [llms.txt](https://docs.doku.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.doku.com/accept-payments/integration-tools/ai-agent-toolkit.md).

# AI Agent Toolkit

## Overview

**DOKU AI Agent Toolkit** is an AI-assisted development plugin designed to accelerate how engineering teams build and deploy DOKU payment integrations. By embedding official DOKU skills, API schemas, and code generation routines directly into modern AI coding environments, the toolkit allows developers to implement DOKU Checkout and Direct API significantly faster and with zero payload hallucinations.

For business and product leaders, the AI Agent Toolkit drastically reduces developer onboarding friction, cuts R\&D build times from weeks to hours, and ensures strict adherence to security and cryptographic signature standards from day one.

### Supported AI Ecosystems & Plugins

DOKU AI Agent Toolkit plugs natively into the industry's leading AI coding tools and environments, ensuring your engineering team can build without switching their existing workflow:

* [Cursor](https://cursor.com/): Pre-configured Cursor rules and IDE plugins that give developers real-time autocomplete, prompt-assisted integration, and inline payload validation directly inside the editor.
* [Claude](https://claude.ai/) (Claude Code & Custom Skills): Official DOKU skill schemas and system instructions tailored for Anthropic's Claude ecosystem, enabling complex multi-file code generation and automated testing workflows.
* [Codex](https://chatgpt.com/codex/) (OpenAI / Copilot): Structured context rules and prompt templates optimized for OpenAI Codex-powered agents and code generation tools.

### Supported Integration APIs

DOKU AI Agent Toolkit supports code generation and automated wiring for DOKU's core payment acceptance solutions:

* [DOKU Checkout](/accept-payments/integration-tools/doku-checkout.md): Quick, single-integration payment solution that hosts a payment page with all active payment methods (Bank Transfer / Virtual Account, QRIS, Credit/Debit Cards, e-Wallet, PayLater, and Convenience Store).
* [Direct API](/accept-payments/integration-tools/direct-api.md): Direct system-to-system integration allowing full customization of the checkout experience on your own website, application, or platform.

***

## Benefits

<details>

<summary>Lower Engineering &#x26; Maintenance Costs</summary>

Reducing the engineering hours required to connect to DOKU Direct API or DOKU Checkout directly lowers development costs. Senior engineers spend less time writing repetitive payment boilerplate and handling edge-case debugging, allowing them to focus on your core product capabilities.

</details>

<details>

<summary>Accelerated Time-to-Market</summary>

In fast-paced markets, payment integration shouldn't be a bottleneck for product launches. By equipping your development team with the AI Agent Toolkit, new software products, e-commerce applications, or SaaS platforms can begin accepting payments in a fraction of the traditional development timeframe.

</details>

<details>

<summary>Bulletproof Security and Compliance</summary>

Payment integrations require precise cryptographic signing (Digest headers, Client Keys, Secret Keys, Idempotency keys). The AI Agent Toolkit enforces DOKU’s official security and architectural standards directly inside the developer's coding environment, preventing common security bugs and configuration mistakes before code ever reaches production.

</details>

#### Traditional API Integration vs. AI Agent Toolkit

Building payment integrations traditionally requires engineering teams to parse extensive API documentation, write manual signature algorithms, and manually map complex request payloads. The AI Agent Toolkit eliminates these operational bottlenecks.

| **Feature / Metric**        | **Traditional API Integration**                                                           | **Integration with DOKU AI Agent Toolkit**                                                 |
| --------------------------- | ----------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ |
| Integration Speed           | Weeks (manual documentation reading, boilerplate coding, and trial-and-error testing).    | Minutes to Hours (prompt-driven code generation using pre-loaded DOKU skills).             |
| Authentication & Signatures | Manual implementation of HMAC-SHA256, Digest headers, and SNAP security standards.        | Automated & Accurate (the plugin generates precise signature and header logic natively).   |
| API Schema Accuracy         | High risk of human error, outdated parameter mapping, or syntax mismatches.               | Guaranteed Accuracy (uses verified, up-to-date DOKU payload schemas inside the IDE).       |
| Developer Onboarding        | Requires extensive developer training on DOKU API architecture and endpoints.             | Zero Ramp-Up (developers use natural language commands like `/doku-generate checkout`).    |
| Maintenance & Updates       | Manual code refactoring whenever payment channel schemas or security requirements update. | Seamless Updates (update the IDE plugin/skill to instantly reflect new DOKU capabilities). |

***

## Get Started

* For Development Team: Read the step-by-step installation guides in our [API Reference](https://developers.doku.com/developer-kit/ai-agent-toolkit).
* For Business Team: [Contact our Sales Team](https://www.doku.com/contact-sales?utm_source=docs) to discuss custom enterprise requirements or register for sandbox credentials.

***

## FAQ

<details>

<summary>Does DOKU charge an extra subscription or API usage fee to use the AI Agent Toolkit?</summary>

The DOKU AI Agent Toolkit is completely free to DOKU merchants. You only need your existing subscriptions or access to your preferred AI coding environment (such as Cursor, Claude Code, or VS Code AI extensions).

</details>

<details>

<summary>Does code generated by the toolkit automatically pass Bank Indonesia (SNAP) compliance and DOKU’s technical go-live review?</summary>

The toolkit enforces DOKU’s official SNAP signature algorithms, required header parameters, and payload formatting by default, which drastically reduces compliance errors. However, your team remains responsible for end-to-end integration testing, secure environment variable handling, and business logic before requesting production activation via the DOKU Merchant Portal.

</details>

<details>

<summary>We hire an external software agency to build our app. Can they use the toolkit without us giving them access to our live DOKU Dashboard?</summary>

Output-wise, absolutely. Third-party developers only need to install the public DOKU plugin/skill into their IDE. They can build and test the entire integration using DOKU’s public Sandbox credentials without ever needing administrative access to your live DOKU Dashboard.

</details>

<details>

<summary>If my developers use DOKU AI Agent Toolkit, will our DOKU API credentials or proprietary codebase be exposed to third-party LLM providers?</summary>

No. The AI Agent Toolkit supplies static rules, API schemas, and signature logic locally to your developer’s IDE. It does not store or process your secret keys. Secret keys and client IDs should always be injected via environment variables (`.env`). However, because your team is using AI IDEs (like Cursor or Windsurf), your codebase handling adheres to your organization's existing privacy agreements with those respective AI tool vendors.

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.doku.com/accept-payments/integration-tools/ai-agent-toolkit.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
