> For the complete documentation index, see [llms.txt](https://docs.clique.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.clique.tech/clique-wallet/what-is-clique-wallet/how-it-works.md).

# How It Works

Clique Wallet is designed with security and user experience at its core. Our architecture is built on the principle that users should never have to compromise between security and convenience. By implementing TEE technology, we've created a wallet infrastructure where cryptographic operations are protected at the hardware level, ensuring that sensitive data remains secure even in the event of software vulnerabilities or insider threats. This approach delivers enterprise-grade security without sacrificing the seamless user experience that drives adoption.

As an embedded wallet service, Clique Wallet integrates directly into your application. Users authenticate through various methods—social login, email/phone verification, or external wallet connections. Upon first login, Clique Wallet automatically generates secure wallets for all supported blockchains within the TEE. All private keys are generated, stored, and managed entirely within the TEE's encrypted enclaves, ensuring they never leave the secure environment. When users sign transactions, the signing operation is performed within the TEE, maintaining complete key isolation. Secure HTTP-only session cookies maintain user authentication state throughout their session.

This architecture makes Clique Wallet ideal for:

* **Trading Platforms**: Integrate wallet functionality for users to deposit, trade, and withdraw assets across multiple chains
* **Consumer Applications**: Enable users to interact with DeFi protocols, NFT marketplaces, and other blockchain applications without managing seed phrases
* **Enterprise Solutions**: Provide secure wallet infrastructure for businesses managing treasury operations or customer assets
* **Gaming & Metaverse**: Offer seamless wallet experiences for in-game purchases and virtual asset management
* **Developer Tools**: Provide programmatic wallet access for automated trading bots, cross-chain bridges, and other infrastructure services


---

# 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.clique.tech/clique-wallet/what-is-clique-wallet/how-it-works.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.
